diff --git a/qlasskit/qcircuit/exporter_cirq.py b/qlasskit/qcircuit/exporter_cirq.py index 56ce0b0..130c564 100644 --- a/qlasskit/qcircuit/exporter_cirq.py +++ b/qlasskit/qcircuit/exporter_cirq.py @@ -53,7 +53,7 @@ def _decompose_(self, qubits): gg = cirq.ControlledGate( sub_gate=cirq.Z, num_controls=len(w) - 1 ) - yield gg(list(map(lambda wx: qubits[w], w))) + yield gg(*(qubits[i] for i in w)) elif isinstance(g, gates.Swap): yield cirq.SWAP(qubits[w[0]], qubits[w[1]])