pub fn gate_definition(
    operation: &Operation,
    qasm_version: QasmVersion
) -> Result<String, RoqoqoBackendError>
Expand description

Outputs the QASM gate definition of many qoqo operations.

§Arguments

  • operation - The roqoqo Operation to be defined.

§Returns

  • Ok(String) - The gate QASM gate definition.
  • RoqoqoBackendError::OperationNotInBackend - Operation not supported by QASM backend.