run_bytes

Function run_bytes 

Source
pub fn run_bytes(
    bytes: &[u8],
    entry_point: Option<&str>,
    shots: u32,
    rng_seed: Option<u64>,
    output_writer: &mut impl Write,
) -> Result<(), String>
Expand description

ยงErrors

Will return Err if

  • bytes 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.