Skip to content

Commit

Permalink
Add Rx, Ry, Rz gates (#3920)
Browse files Browse the repository at this point in the history
This PR creates separate `Rx`, `Ry`, `Rz` gates.
  • Loading branch information
tanujkhattar committed Mar 18, 2021
1 parent 3d369a0 commit fa55cbb
Show file tree
Hide file tree
Showing 13 changed files with 212 additions and 77 deletions.
3 changes: 3 additions & 0 deletions cirq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@
reset,
ResetChannel,
riswap,
Rx,
Ry,
Rz,
rx,
ry,
rz,
Expand Down
3 changes: 3 additions & 0 deletions cirq/json_resolver_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ def two_qubit_matrix_gate(matrix):
'TaggedOperation': cirq.TaggedOperation,
'ThreeDQubit': cirq.pasqal.ThreeDQubit,
'Result': cirq.Result,
'Rx': cirq.Rx,
'Ry': cirq.Ry,
'Rz': cirq.Rz,
'TrialResult': cirq.TrialResult,
'TwoDQubit': cirq.pasqal.TwoDQubit,
'TwoQubitMatrixGate': two_qubit_matrix_gate,
Expand Down
3 changes: 3 additions & 0 deletions cirq/ops/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
CZPowGate,
H,
HPowGate,
Rx,
Ry,
Rz,
rx,
ry,
rz,
Expand Down

0 comments on commit fa55cbb

Please sign in to comment.