Skip to content

Commit

Permalink
fix small normalization bug (#6404)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoureldinYosri authored Jan 9, 2024
1 parent aa57be5 commit c8f7ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cirq-core/cirq/sim/clifford/clifford_simulator_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def test_clifford_circuit_SHSYSHS():

# workaround until #6402 is resolved.
final_state_vector = state_vector_simulator.simulate(circuit).final_state_vector
final_state_vector /= np.sqrt(np.linalg.norm(final_state_vector))
final_state_vector /= np.linalg.norm(final_state_vector)
np.testing.assert_almost_equal(
clifford_simulator.simulate(circuit).final_state.state_vector(), final_state_vector
)
Expand Down

0 comments on commit c8f7ed7

Please sign in to comment.