Skip to content

Commit

Permalink
Update exporter_cirq.py
Browse files Browse the repository at this point in the history
  • Loading branch information
refedico authored Oct 17, 2024
1 parent 525a878 commit f1265ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qlasskit/qcircuit/exporter_cirq.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _decompose_(self, qubits):
gg = cirq.ControlledGate(
sub_gate=cirq.X, 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.MCtrl) and isinstance(g.gate, gates.Z):
gg = cirq.ControlledGate(
Expand Down

0 comments on commit f1265ce

Please sign in to comment.