Skip to content

Commit

Permalink
Fix return value
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelishman committed Oct 16, 2023
1 parent 0a8e00a commit 38a26eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def quantize_angles(self, qubit, original_angle):
if similar_angles.size == 0:
self.already_generated[qubit] = np.append(angles, original_angle)
return original_angle
return float(angles[0])
return float(similar_angles[0])

def run(self, dag):
"""Run the NormalizeRXAngle pass on ``dag``.
Expand Down

0 comments on commit 38a26eb

Please sign in to comment.