mirror of https://github.com/Qiskit/qiskit.git
![]() * Fix compatibility issues with SciPy 1.14
The main change here is that SciPy 1.14 on macOS now uses the system
Accelerate rather than a bundled OpenBLAS by default. These have
different characteristics for several LAPACK drivers, which caused
numerical instability in our test suite. Fundamentally, these problems
existed before; it was always possible to switch out the BLAS/LAPACK
implementation that SciPy used, but in practice, the vast majority of
users (and our CI) use the system defaults.
The modification to `Operator.power` to shift the branch cut was
suggested by Lev. As a side-effect of how it's implemented, it fixes
an issue with `Operator.power` on non-unitary matrices, which Sasha had
been looking at.
The test changes to the Kraus and Stinespring modules are to cope with
the two operators only being defined up to a global phase, which the
test previously did not account for. The conversion to Kraus-operator
form happens to work fine with OpenBLAS, but caused global-phase
differences on macOS Accelerate. A previous version of this commit
attempted to revert the Choi-to-Kraus conversion back to using `eigh`
instead of the Schur decomposition, but the `eigh` instabilities noted
in
|
||
---|---|---|
.. | ||
__init__.py | ||
channel_test_case.py | ||
test_adjoint.py | ||
test_chi.py | ||
test_choi.py | ||
test_evolve.py | ||
test_kraus.py | ||
test_linearops.py | ||
test_ptm.py | ||
test_stinespring.py | ||
test_superop.py | ||
test_tensor_compose.py | ||
test_transformations.py |