Cirq icon indicating copy to clipboard operation
Cirq copied to clipboard

Tweak DM normalization after factor

Open daxfohl opened this issue 3 years ago • 0 comments

As reported in #5916, when repeatedly factoring and kronning a density matrix during simulation, the rounding error caused by partial_trace can propagate and explode after about 15 repetitions. This PR explicitly re-normalizes the density matrix after factoring.

Fixes #5916

daxfohl avatar Oct 13 '22 22:10 daxfohl