Function qir_runner::run_bitcode

source ·
pub fn run_bitcode(
    bytes: &[u8],
    entry_point: Option<&str>,
    shots: u32
) -> 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.