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%)
3 existing lines in 2 files now uncovered.79071 of 88906 relevant lines covered (88.94%)
357139.59 hits per line