iqm.cirq_iqm.serialize

iqm.cirq_iqm.serialize#

Helper functions for serializing and deserializing quantum circuits between Cirq and IQM Circuit formats.

Functions

deserialize_circuit(circuit)

Deserializes a quantum circuit from the IQM data transfer format to a Cirq Circuit.

instruction_to_operation(instr)

Convert an IQM instruction to a Cirq Operation.

map_operation(operation)

Map a Cirq Operation to the IQM data transfer format.

serialize_circuit(circuit)

Serializes a quantum circuit into the IQM data transfer format.

Exceptions

OperationNotSupportedError

Raised when a given operation is not supported by the IQM server.