Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
anurudhp committed Apr 1, 2024
1 parent 3a0d092 commit ddd45a8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions qualtran/bloqs/basic_gates/su2_rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,7 @@ def _t_complexity_(self) -> TComplexity:
return TComplexity(rotations=3)

def _is_parameterized_(self) -> bool:
return any(
cirq.is_parameterized(param)
for param in [self.theta, self.phi, self.lambd, self.global_shift]
)
return cirq.is_parameterized((self.theta, self.phi, self.lambd, self.global_shift))


@bloq_example
Expand Down

0 comments on commit ddd45a8

Please sign in to comment.