Function roqoqo_qasm::call_operation[][src]

pub fn call_operation(
    operation: &Operation,
    qubit_register_name: &str
) -> Result<String, RoqoqoBackendError>
Expand description

Translates a qoqo operation to QASM (&str).

Arguments

  • operation - The qoqo Operation that is executed.

Returns

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