Skip to content

Commit

Permalink
Update qis.py (#2161)
Browse files Browse the repository at this point in the history
added phase information to the description of r1 and rz operators in the api documentation to address issue 2160

Co-authored-by: Eric Schweitz <[email protected]>
  • Loading branch information
mmvandieren and schweitzpgi committed Sep 7, 2024
1 parent 9bab800 commit e401d1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/cudaq/qis/qis.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ def ry(*args):

def rz(*args):
"""
This operation is an arbitrary rotation about the Z axis.
This operation is an arbitrary rotation about the Z axis, which introduces a relative phase factor of lambda.
"""
raise_error


def r1(*args):
"""
This operation is an arbitrary rotation about the |1> state.
This operation is an arbitrary rotation about the |1> state or the Z axis, which introduces a relative phase factor of lambda/2.
"""
raise_error

Expand Down

0 comments on commit e401d1e

Please sign in to comment.