qat.interop.cirq.cirq_to_qlm
- qat.interop.cirq.cirq_to_qlm(circ, sep_measures=False, **kwargs)
Converts a google cirq circuit to a qlm circuit
- Parameters
cirq – the cirq circuit to convert
sep_measures –
Separates measures from the circuit:
if set to
True
measures won’t be included in the resulting circuits, qubits to be measured will be put in a list, the resulting measureless circuit and this list will be returned in a tuple : (resulting_circuit, list_qubits)if set to
False
, measures will be converted normally (Default set to False)
kwargs – these are the options that you would use on a regular to_circ function, to generate a QLM circuit from a PyAQASM program these are added for more flexibility, for advanced users
- Returns
If
sep_measures
is set to:- Return type
tuple
orCircuit