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

[Stable] Fix fitter selection logic in process tomography (#431) #435

Merged

Conversation

mtreinish
Copy link
Collaborator

Summary

This commit fixes an issue in the process tomography module. When cvxpy
was not installed the module would fail to import. That's because the
selection logic was reworked in #422 but never updated in process
tomography to reflect that change. Since no CI job runs without cvxpy
installed we never caught this edge case. This commit fixes the
underlying issue to rework the process tomography fitter selection logic
to mirror the changes to state tomography in #422 and then also try and
add ci coverage it removes cvxpy from the docs tox job. With warnings
set to fatal this should ensure we are always able to import everything
and build the docs if cvxpy is not installed.

Details and comments

Backported from #431
Fixes #429

(cherry picked from commit 01e9070)

This commit fixes an issue in the process tomography module. When cvxpy
was not installed the module would fail to import. That's because the
selection logic was reworked in qiskit-community#422 but never updated in process
tomography to reflect that change. Since no CI job runs without cvxpy
installed we never caught this edge case. This commit fixes the
underlying issue to rework the process tomography fitter selection logic
to mirror the changes to state tomography in qiskit-community#422 and then also try and
add ci coverage it removes cvxpy from the docs tox job. With warnings
set to fatal this should ensure we are always able to import everything
and build the docs if cvxpy is not installed.

Fixes qiskit-community#429

(cherry picked from commit 01e9070)
@mtreinish mtreinish added the Changelog: Bugfix Include in the Fixed section of the changelog label Jun 22, 2020
@mtreinish mtreinish changed the title Fix fitter selection logic in process tomography (#431) [Stable] Fix fitter selection logic in process tomography (#431) Jun 22, 2020
@chriseclectic chriseclectic merged commit 5528ae1 into qiskit-community:stable/0.3 Jun 22, 2020
@mtreinish mtreinish deleted the backport-fix-import branch June 22, 2020 20:08
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants