iqm.cirq_iqm.iqm_operation_mapping.map_operation

Contents

iqm.cirq_iqm.iqm_operation_mapping.map_operation#

iqm.cirq_iqm.iqm_operation_mapping.map_operation(operation)#

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:

Instruction

Raises:

OperationNotSupportedError When the circuit contains an unsupported operation.