Skip to content

Commit

Permalink
mcx
Browse files Browse the repository at this point in the history
  • Loading branch information
IsmaelCesar committed Mar 15, 2024
1 parent 64d1355 commit e156f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/circuit/library/standard_gates/x.py
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@ def _define(self):
if self.num_ctrl_qubits < 3:
qc.mcx(q_controls, q_target)
elif not self._relative_phase and self.num_ctrl_qubits == 3:
qc.mcx(q_controls, q_target)
qc._append(C3XGate(), [*q_controls, q_target], [])
else:
num_ancillas = self.num_ctrl_qubits - 2
targets = [q_target] + q_ancillas[:num_ancillas][::-1]
Expand Down

0 comments on commit e156f50

Please sign in to comment.