Skip to content

Commit

Permalink
Bugfix: list of GeneralizedRotationImpl.
Browse files Browse the repository at this point in the history
  • Loading branch information
dariavh committed Sep 20, 2023
1 parent 9afec31 commit 5af737b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tequila/circuit/_gates_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def shifted_gates(self):
Um1._parameter = self.parameter-s
Um2 = GeneralizedRotationImpl(angle=-s, generator=self.p0, eigenvalues_magnitude=r) # controls are in p0

return [(2.0 * r, [Up1, Up2]), (-2.0 * r, [Um1 + Um2])]
return [(2.0 * r, [Up1, Up2]), (-2.0 * r, [Um1, Um2])]

class ExponentialPauliGateImpl(DifferentiableGateImpl):
"""
Expand Down

0 comments on commit 5af737b

Please sign in to comment.