Skip to content

Commit

Permalink
Fix CZ in cirq exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
dakk authored Oct 18, 2024
1 parent f1265ce commit fc27dca
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 @@ -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]])
Expand Down

0 comments on commit fc27dca

Please sign in to comment.