iqm.cirq_iqm.serialize.operation_to_circuit_operation

iqm.cirq_iqm.serialize.operation_to_circuit_operation#

iqm.cirq_iqm.serialize.operation_to_circuit_operation(operation: Operation) CircuitOperation#

Map a Cirq Operation to the IQM data transfer format.

Assumes the circuit has been transpiled so that it only contains operations natively supported by the given IQM quantum architecture.

Parameters:

operation (Operation) – a Cirq Operation

Returns:

the converted operation

Return type:

CircuitOperation

Raises:

OperationNotSupportedError When the circuit contains an unsupported operation.