Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid DivisionByZero error when TensorNetwork simplifies to a scalar (q…
…uantumlib#6586) Problem: Python 3.12 requires quimb-1.8.0, but quimb-1.8.0 cannot evaluate path-info for TensorNetwork consisting of a scalar Tensor. Solution: Skip path-info evaluation for scalar TensorNetwork. Path-info is used for RAM estimation only which is not a problem for scalar TensorNetwork-s. This fixes unit test failure for cirq-core/cirq/contrib/quimb/grid_circuits_test.py::test_tensor_expectation_value Ref: jcmgray/quimb#231
- Loading branch information