This repository has been archived by the owner on Jun 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update 'auto' method to not use SCS solver for CVXPY (#536)
Fix the "auto" method of the tomography fitters to only use "cvx" if CVXPY is installed and a third-party SDP solver other than SCS is available. This is because the SCS solver has lower accuracy than other solver methods and often returns a density matrix or Choi-matrix that is not completely-positive and fails validation when used state_fidelity or process_fidelity functions
- Loading branch information
1 parent
563d969
commit 006876e
Showing
3 changed files
with
38 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fix the ``"auto"`` method of the | ||
:class:`~qiskit.ignis.verification.tomography.TomographyFitter`, | ||
:class:`~qiskit.ignis.verification.tomography.StateTomographyFitter`, and | ||
:class:`~qiskit.ignis.verification.tomography.ProcessTomographyFitter` to | ||
only use ``"cvx"`` if CVXPY is installed *and* a third-party SDP solver | ||
other than SCS is available. This is because the SCS solver has lower | ||
accuracy than other solver methods and often returns a density matrix or | ||
Choi-matrix that is not completely-positive and fails validation when used | ||
with the :func:`qiskit.quantum_info.state_fidelity` or | ||
:func:`qiskit.quantum_info.process_fidelity` functions. |