Function qir_runner::run_file

source ·
pub fn run_file(
    path: impl AsRef<Path>,
    entry_point: Option<&str>,
    shots: u32
) -> Result<(), String>
Expand description

Errors

Will return Err if

  • filename does not exist or the user does not have permission to read it.
  • filename does not contain a valid bitcode module
  • filename does not have either a .ll or .bc as an extension
  • entry_point is not found in the QIR
  • Entry point has parameters or a non-void return type.