run_input

Function run_input 

Source
pub fn run_input<R: Read>(
    input: &mut R,
    entry_point: Option<&str>,
    shots: u32,
    rng_seed: Option<u64>,
    output_writer: &mut impl Write,
) -> Result<(), String>
Expand description

ยงErrors

Will return Err if

  • The input cannot be read from input.
  • The input is empty.
  • The input does not contain a valid bitcode module or LLVM IR string.
  • entry_point is not found in the QIR.
  • Entry point has parameters or a non-void return type.