Skip to content

Commit

Permalink
added GenRot shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
kottmanj committed Sep 22, 2023
1 parent 76c80c6 commit b6f7a4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tequila/circuit/gates.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,9 @@ def Rp(paulistring: typing.Union[PauliString, str], angle, control: typing.Union
return ExpPauli(paulistring=paulistring, angle=angle, control=control, *args, **kwargs)


def GenRot(*args, **kwargs):
return GeneralizedRotation(*args, **kwargs)

def GeneralizedRotation(angle: typing.Union[typing.List[typing.Hashable], typing.List[numbers.Real]],
generator: QubitHamiltonian,
control: typing.Union[list, int] = None,
Expand Down Expand Up @@ -393,6 +396,8 @@ def GeneralizedRotation(angle: typing.Union[typing.List[typing.Hashable], typing
list of control qubits
eigenvalues_magnitude
magnitude of eigenvalues, in most papers referred to as "r" (default 0.5)
p0
possible nullspace projector (if the rotation is happens in Q = 1-P0). See arxiv:2011.05938
steps
possible Trotterization steps (default 1)
Expand Down

0 comments on commit b6f7a4d

Please sign in to comment.