Skip to content

Commit

Permalink
Merge pull request #5 from dabacon/simulator
Browse files Browse the repository at this point in the history
Fixes broken test that was borked when adding parens for line breaks.
  • Loading branch information
dabacon authored Jan 10, 2018
2 parents 1a0705f + 9ccab8a commit 58e1446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cirq/sim/google/xmon_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,6 @@ def _collapse_state(args: Dict[str, Any]):

state = _state_shard(args)
normalization = np.sqrt(prob_one if result else 1 - prob_one)
state *= _one_projector(args, index) * (result
state *= (_one_projector(args, index) * result
+ (1 - _one_projector(args, index)) * (1 - result))
state /= normalization

0 comments on commit 58e1446

Please sign in to comment.