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

Fix fitter selection logic in process tomography #431

Merged
merged 2 commits into from
Jun 22, 2020

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

Fixes #429

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
@mtreinish
Copy link
Collaborator Author

It looks like travis is just stuck here, it successfully ran here: https://travis-ci.com/github/Qiskit/qiskit-ignis/builds/172273948

@mtreinish mtreinish merged commit 01e9070 into qiskit-community:master Jun 22, 2020
@mtreinish mtreinish deleted the fix-import branch June 22, 2020 11:45
@mtreinish mtreinish added the Changelog: Bugfix Include in the Fixed section of the changelog label Jun 22, 2020
mtreinish added a commit to mtreinish/qiskit-ignis that referenced this pull request Jun 22, 2020
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)
chriseclectic pushed a commit that referenced this pull request Jun 22, 2020
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.

Fixes #429

(cherry picked from commit 01e9070)
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.

Importing tomography with cvxpy installed fails
2 participants