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
operation
- The roqoqo::operations::Operation that is converted
§Returns
Ok(IqmInstruction)
- Converted instructionErr(RoqoqoBackendError::OperationNotInBackend)
- Error when roqoqo::operations::Operation can not be converted