Skip to content

Commit

Permalink
fixes MCPhaseGate definition (#4989)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Krsulich <kevin.krsulich@ibm.com>
  • Loading branch information
faisaldebouni and kdk authored Aug 28, 2020
1 parent ef57f72 commit 08a1f37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiskit/circuit/library/standard_gates/p.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ def _define(self):
else:
from .u3 import _gray_code_chain
scaled_lam = self.params[0] / (2 ** (self.num_ctrl_qubits - 1))
bottom_gate = PhaseGate(scaled_lam)
bottom_gate = CPhaseGate(scaled_lam)
definition = _gray_code_chain(q, self.num_ctrl_qubits, bottom_gate)
qc.data = definition
qc._data = definition
self.definition = qc

def control(self, num_ctrl_qubits=1, label=None, ctrl_state=None):
Expand Down

0 comments on commit 08a1f37

Please sign in to comment.