pub fn call_operation(
    operation: &Operation,
    qubit_register_name: &str,
    qasm_version: QasmVersion,
    variable_gatherer: &mut Option<&mut VariableGatherer>
) -> Result<String, RoqoqoBackendError>
Expand description

Translates a qoqo operation to QASM (&str).

§Arguments

  • operation - The qoqo Operation that is executed.
  • qubtit_register_name - Name of the quantum register used for the roqoqo address.
  • qasm_version - The QASM version to use.
  • variable_gatherer - Optional VariableParser to call.

§Returns

  • Ok(&str) - Converted operation in &str form.
  • Err(RoqoqoBackendError) - Operation not supported by QASM backend.