Cirq interoperability

Translating quantum circuits

myQLM provides binders to translate quantum circuit from Google Cirq to myQLM and vice-versa throught functions cirq_to_qlm() and qlm_to_cirq()

from qat.interop.cirq import cirq_to_qlm

qlm_circ = cirq_to_qlm(your_google_circ)

Or

from qat.interop.cirq import qlm_to_cirq

google_circ = qlm_to_cirq(your_qlm_circ)

Note

when mixing LineQubit and GridQubit, all grid qubits will be allocated first, then all line qubits. The order will follow coordinates.