Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Update 'auto' method to not use SCS solver for CVXPY #536

Merged
merged 3 commits into from
Nov 11, 2020

Conversation

chriseclectic
Copy link
Collaborator

Summary

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

Details and comments

@chriseclectic chriseclectic added Changelog: Bugfix Include in the Fixed section of the changelog stable-backport-potential labels Nov 10, 2020
Copy link
Collaborator

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I think this could arguably be an upgrade note instead of a bugfix. But IMO it's on the line because while it's something a user may need to be aware of and workaround while upgrading it does fix an issue with the lower accuracy solver.

@mtreinish mtreinish merged commit 006876e into qiskit-community:master Nov 11, 2020
mtreinish pushed a commit to mtreinish/qiskit-ignis that referenced this pull request Nov 12, 2020
…y#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

(cherry picked from commit 006876e)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog: Bugfix Include in the Fixed section of the changelog stable-backport-potential
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants