Commit d16b12c
authored
Avoid state vector normalization if it worsens the round offs (#6556)
This fixes failure of
check/pytest -n0 cirq-core/cirq/circuits/circuit_test.py::test_final_state_vector
which happened because normalization of a state vector at `np.complex64`
precision can subtly increase the overall round-off error.
Follow up to #6522 and #64021 parent c18feed commit d16b12c
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
| |||
0 commit comments