Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Retain log_of_measurement_results throughout simulation (#4465)
Breaking change: Step results will include all measurements from previous moments in the simulation. Part of https://tinyurl.com/cirq-feedforward, PR 4 Rationale: with feedforward and flow control, classical state is just as much part of the simulation as quantum state. The ActOnArgs *must* contain the full classical state to check whether gates should be applied. For step results, each step result contains the aggregate quantum state, and should also contain the aggregate classical state, hence the breaking change. This also simplifies analyzing results, as you can look only at the final step result to get all measurements rather than having to traverse them all.
- Loading branch information