Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information