Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cirq-ionq/cirq_ionq/ionq_native_gates.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def __pow__(self, power):
return self

if power == -1:
return MSGate(phi0=self.phi0 + 0.5, phi1=self.phi1)
return MSGate(phi0=self.phi0 + 0.5, phi1=self.phi1, theta=self.theta)

return NotImplemented

Expand Down
5 changes: 4 additions & 1 deletion cirq-ionq/cirq_ionq/ionq_native_gates_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ def test_zz_unitary(phase):
[
*[ionq.GPIGate(phi=angle) for angle in PARAMS_FOR_ONE_ANGLE_GATE],
*[ionq.GPI2Gate(phi=angle) for angle in PARAMS_FOR_ONE_ANGLE_GATE],
*[ionq.MSGate(phi0=angles[0], phi1=angles[1]) for angles in PARAMS_FOR_TWO_ANGLE_GATE],
*[
ionq.MSGate(phi0=angles[0], phi1=angles[1], theta=0.8)
for angles in PARAMS_FOR_TWO_ANGLE_GATE
],
*[ionq.ZZGate(theta=angle) for angle in PARAMS_FOR_ONE_ANGLE_GATE],
],
)
Expand Down