Function roqoqo_iqm::call_operation

source ·
pub fn call_operation(
    operation: &Operation,
) -> Result<Option<IqmInstruction>, RoqoqoBackendError>
Expand description

Converts a roqoqo::operations::Operation into a native instruction for IQM Hardware

§Arguments

§Returns

  • Ok(IqmInstruction) - Converted instruction
  • Err(RoqoqoBackendError::OperationNotInBackend) - Error when roqoqo::operations::Operation can not be converted