diff --git a/qiskit/transpiler/passes/optimization/normalize_rx_angle.py b/qiskit/transpiler/passes/optimization/normalize_rx_angle.py index 8bfb352b7834..ad39cbc229c5 100644 --- a/qiskit/transpiler/passes/optimization/normalize_rx_angle.py +++ b/qiskit/transpiler/passes/optimization/normalize_rx_angle.py @@ -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``.