Function run_bitcode

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

ยงErrors

Will return Err if

  • bytes does not contain a valid bitcode module
  • entry_point is not found in the QIR
  • Entry point has parameters or a non-void return type.