push
github
Fix process-based non-determinism in `SparsePauliOp.to_matrix` (#13439) (#13440) * Fix process-based non-determinism in `SparsePauliOp.to_matrix` The simplification step of the summed Pauli terms in `SparsePauliOp.to_matrix` had introduced a non-determinism via hash-map iteration. In practice, the base hash seed was set per initialisation of the extension module, then stayed the same. This is hard to detect from within tests, but caused unexpected numerical behaviour on different invocations of the same script. * Use ahash::RandomState --------- Co-authored-by: Kevin Hartman <kevin@hart.mn> (cherry picked from commit 74b32c9d2) Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
5 of 5 new or added lines in 1 file covered. (100.0%)
18 existing lines in 4 files now uncovered.79046 of 88906 relevant lines covered (88.91%)
355632.43 hits per line