Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict cvxpy testing to python 3.7 and 3.8 #1074

Merged
merged 5 commits into from
Dec 8, 2020

Conversation

mtreinish
Copy link
Member

@mtreinish mtreinish commented Dec 8, 2020

Summary

The cvxpy packaging (more specifically scs) is causing issues in CI for
us because since it is incorrectly trying to install numpy from a
pre-release package which does not support python 3.6. The nature of
this issue is difficult to pin because it's not using pip to install
numpy. Since cvxpy is only used in a single place, noise
transformations, instead of trying to workaround these scs packaging
issues this commit just restricts the test requirements on cvxpy to only
match pytho 3.7 or 3.8. If cvxpy is not installed the noise
transformation tests will now skip instead of fail.

Details and comments

Co-authored-by: Daniel Puzzuoli dan.puzzuoli@gmail.com

The cvxpy packaging (more specifically scs) is causing issues in CI for
us because since it is incorrectly trying to install numpy from a
pre-release package which does not support python 3.6. The nature of
this issue is difficult to pin because it's not using pip to install
numpy. Since cvxpy is only used in a single place, noise
transformations, instead of trying to workaround these scs packaging
issues this commit just restricts the test requirements on cvxpy to only
match pytho 3.7 or 3.8. If cvxpy is not installed the noise
transformation tests will now skip instead of fail.
The tutorials repo has added some new types of tutorials for different
parts of aqua. These should be skipped since they don't really exercise
the aer api. This commit updates the tutorials job definition to stop
running these new tutorials.
@mtreinish
Copy link
Member Author

This is working except for some pulse simulator test failures that look like they were probably caused by Qiskit/qiskit#5481

DanPuzzuoli and others added 3 commits December 8, 2020 14:47
Delay instructions are no longer present in the pulse library of a qobj,
resulting in a key error in the pulse digest when looking up properties
of instructions in the internal pulse-simulator representation of the
pulse library. The bug was fixed by modifying the code that loops
through instructions in an experiment to simply do nothing when a delay
instruction is found.
@chriseclectic chriseclectic merged commit b0f4fdf into Qiskit:master Dec 8, 2020
@mtreinish mtreinish deleted the only-cvxpy-on-37-38 branch December 8, 2020 22:56
@mtreinish mtreinish mentioned this pull request Dec 9, 2020
chriseclectic pushed a commit to chriseclectic/qiskit-aer that referenced this pull request Dec 11, 2020
* Restrict cvxpy testing to python 3.7 and 3.8

The cvxpy packaging (more specifically scs) is causing issues in CI for
us because since it is incorrectly trying to install numpy from a
pre-release package which does not support python 3.6. The nature of
this issue is difficult to pin because it's not using pip to install
numpy. Since cvxpy is only used in a single place, noise
transformations, instead of trying to workaround these scs packaging
issues this commit just restricts the test requirements on cvxpy to only
match pytho 3.7 or 3.8. If cvxpy is not installed the noise
transformation tests will now skip instead of fail.

* Update tutorials skip list

The tutorials repo has added some new types of tutorials for different
parts of aqua. These should be skipped since they don't really exercise
the aer api. This commit updates the tutorials job definition to stop
running these new tutorials.

* Fix delay instruction bug in pulse simulator

Delay instructions are no longer present in the pulse library of a qobj,
resulting in a key error in the pulse digest when looking up properties
of instructions in the internal pulse-simulator representation of the
pulse library. The bug was fixed by modifying the code that loops
through instructions in an experiment to simply do nothing when a delay
instruction is found.

* fixing array comparison in config pulse simulator test

* Add back noise skips that were accidently removed

Co-authored-by: DanPuzzuoli <dan.puzzuoli@gmail.com>
chriseclectic pushed a commit to chriseclectic/qiskit-aer that referenced this pull request Dec 11, 2020
* Restrict cvxpy testing to python 3.7 and 3.8

The cvxpy packaging (more specifically scs) is causing issues in CI for
us because since it is incorrectly trying to install numpy from a
pre-release package which does not support python 3.6. The nature of
this issue is difficult to pin because it's not using pip to install
numpy. Since cvxpy is only used in a single place, noise
transformations, instead of trying to workaround these scs packaging
issues this commit just restricts the test requirements on cvxpy to only
match pytho 3.7 or 3.8. If cvxpy is not installed the noise
transformation tests will now skip instead of fail.

* Update tutorials skip list

The tutorials repo has added some new types of tutorials for different
parts of aqua. These should be skipped since they don't really exercise
the aer api. This commit updates the tutorials job definition to stop
running these new tutorials.

* Fix delay instruction bug in pulse simulator

Delay instructions are no longer present in the pulse library of a qobj,
resulting in a key error in the pulse digest when looking up properties
of instructions in the internal pulse-simulator representation of the
pulse library. The bug was fixed by modifying the code that loops
through instructions in an experiment to simply do nothing when a delay
instruction is found.

* fixing array comparison in config pulse simulator test

* Add back noise skips that were accidently removed

Co-authored-by: DanPuzzuoli <dan.puzzuoli@gmail.com>
chriseclectic pushed a commit to chriseclectic/qiskit-aer that referenced this pull request Dec 11, 2020
* Restrict cvxpy testing to python 3.7 and 3.8

The cvxpy packaging (more specifically scs) is causing issues in CI for
us because since it is incorrectly trying to install numpy from a
pre-release package which does not support python 3.6. The nature of
this issue is difficult to pin because it's not using pip to install
numpy. Since cvxpy is only used in a single place, noise
transformations, instead of trying to workaround these scs packaging
issues this commit just restricts the test requirements on cvxpy to only
match pytho 3.7 or 3.8. If cvxpy is not installed the noise
transformation tests will now skip instead of fail.

* Update tutorials skip list

The tutorials repo has added some new types of tutorials for different
parts of aqua. These should be skipped since they don't really exercise
the aer api. This commit updates the tutorials job definition to stop
running these new tutorials.

* Fix delay instruction bug in pulse simulator

Delay instructions are no longer present in the pulse library of a qobj,
resulting in a key error in the pulse digest when looking up properties
of instructions in the internal pulse-simulator representation of the
pulse library. The bug was fixed by modifying the code that loops
through instructions in an experiment to simply do nothing when a delay
instruction is found.

* fixing array comparison in config pulse simulator test

* Add back noise skips that were accidently removed

Co-authored-by: DanPuzzuoli <dan.puzzuoli@gmail.com>
@chriseclectic chriseclectic added the stable-backport-potential The issue or PR might be minimal and/or import enough to backport to stable label Jan 22, 2021
chriseclectic pushed a commit to chriseclectic/qiskit-aer that referenced this pull request Jan 25, 2021
* Restrict cvxpy testing to python 3.7 and 3.8

The cvxpy packaging (more specifically scs) is causing issues in CI for
us because since it is incorrectly trying to install numpy from a
pre-release package which does not support python 3.6. The nature of
this issue is difficult to pin because it's not using pip to install
numpy. Since cvxpy is only used in a single place, noise
transformations, instead of trying to workaround these scs packaging
issues this commit just restricts the test requirements on cvxpy to only
match pytho 3.7 or 3.8. If cvxpy is not installed the noise
transformation tests will now skip instead of fail.

* Update tutorials skip list

The tutorials repo has added some new types of tutorials for different
parts of aqua. These should be skipped since they don't really exercise
the aer api. This commit updates the tutorials job definition to stop
running these new tutorials.

* Fix delay instruction bug in pulse simulator

Delay instructions are no longer present in the pulse library of a qobj,
resulting in a key error in the pulse digest when looking up properties
of instructions in the internal pulse-simulator representation of the
pulse library. The bug was fixed by modifying the code that loops
through instructions in an experiment to simply do nothing when a delay
instruction is found.

* fixing array comparison in config pulse simulator test

* Add back noise skips that were accidently removed

Co-authored-by: DanPuzzuoli <dan.puzzuoli@gmail.com>
chriseclectic pushed a commit to chriseclectic/qiskit-aer that referenced this pull request Jan 25, 2021
* Restrict cvxpy testing to python 3.7 and 3.8

The cvxpy packaging (more specifically scs) is causing issues in CI for
us because since it is incorrectly trying to install numpy from a
pre-release package which does not support python 3.6. The nature of
this issue is difficult to pin because it's not using pip to install
numpy. Since cvxpy is only used in a single place, noise
transformations, instead of trying to workaround these scs packaging
issues this commit just restricts the test requirements on cvxpy to only
match pytho 3.7 or 3.8. If cvxpy is not installed the noise
transformation tests will now skip instead of fail.

* Update tutorials skip list

The tutorials repo has added some new types of tutorials for different
parts of aqua. These should be skipped since they don't really exercise
the aer api. This commit updates the tutorials job definition to stop
running these new tutorials.

* Fix delay instruction bug in pulse simulator

Delay instructions are no longer present in the pulse library of a qobj,
resulting in a key error in the pulse digest when looking up properties
of instructions in the internal pulse-simulator representation of the
pulse library. The bug was fixed by modifying the code that loops
through instructions in an experiment to simply do nothing when a delay
instruction is found.

* fixing array comparison in config pulse simulator test

* Add back noise skips that were accidently removed

Co-authored-by: DanPuzzuoli <dan.puzzuoli@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stable-backport-potential The issue or PR might be minimal and/or import enough to backport to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants