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

feat: update dependencies to include numpy 1.25.x and Pennylane 0.33.x #457

Merged
merged 34 commits into from
Dec 9, 2023

Conversation

AbeCoull
Copy link
Contributor

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

dependabot bot and others added 4 commits November 13, 2023 19:00
Updates the requirements on [botocore](https://github.com/boto/botocore), [awscli](https://github.com/aws/aws-cli), [boto3](https://github.com/boto/boto3), [amazon-braket-pennylane-plugin](https://github.com/amazon-braket/amazon-braket-pennylane-plugin-python), [amazon-braket-sdk](https://github.com/amazon-braket/amazon-braket-sdk-python), [ipykernel](https://github.com/ipython/ipykernel), [ipython](https://github.com/ipython/ipython), [jax](https://github.com/google/jax), [jaxlib](https://github.com/google/jax), [matplotlib](https://github.com/matplotlib/matplotlib), [ml-dtypes](https://github.com/jax-ml/ml_dtypes), [openfermion](https://github.com/quantumlib/OpenFermion), [optax](https://github.com/deepmind/optax), [numpy](https://github.com/numpy/numpy), [pandas](https://github.com/pandas-dev/pandas), [pennylane](https://github.com/PennyLaneAI/pennylane), [pennylane-lightning](https://github.com/XanaduAI/pennylane-lightning), [qiskit-aer](https://github.com/Qiskit/qiskit-aer), [qiskit-braket-provider](https://github.com/qiskit-community/qiskit-braket-provider) and [qiskit-terra](https://github.com/Qiskit/qiskit) to permit the latest version.

Updates `botocore` from 1.31.68 to 1.31.84
- [Changelog](https://github.com/boto/botocore/blob/develop/CHANGELOG.rst)
- [Commits](boto/botocore@1.31.68...1.31.84)

Updates `awscli` from 1.29.68 to 1.29.84
- [Release notes](https://github.com/aws/aws-cli/releases)
- [Changelog](https://github.com/aws/aws-cli/blob/develop/CHANGELOG.rst)
- [Commits](aws/aws-cli@1.29.68...1.29.84)

Updates `boto3` from 1.28.68 to 1.28.84
- [Release notes](https://github.com/boto/boto3/releases)
- [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst)
- [Commits](boto/boto3@1.28.68...1.28.84)

Updates `amazon-braket-pennylane-plugin` from 1.22.0 to 1.23.0
- [Release notes](https://github.com/amazon-braket/amazon-braket-pennylane-plugin-python/releases)
- [Changelog](https://github.com/amazon-braket/amazon-braket-pennylane-plugin-python/blob/main/CHANGELOG.md)
- [Commits](amazon-braket/amazon-braket-pennylane-plugin-python@v1.22.0...v1.23.0)

Updates `amazon-braket-sdk` from 1.60.2 to 1.62.0
- [Release notes](https://github.com/amazon-braket/amazon-braket-sdk-python/releases)
- [Changelog](https://github.com/amazon-braket/amazon-braket-sdk-python/blob/main/CHANGELOG.md)
- [Commits](amazon-braket/amazon-braket-sdk-python@v1.60.2...v1.62.0)

Updates `ipykernel` from 6.25.2 to 6.26.0
- [Release notes](https://github.com/ipython/ipykernel/releases)
- [Changelog](https://github.com/ipython/ipykernel/blob/main/CHANGELOG.md)
- [Commits](ipython/ipykernel@v6.25.2...v6.26.0)

Updates `ipython` to 8.17.2
- [Release notes](https://github.com/ipython/ipython/releases)
- [Commits](ipython/ipython@rel-0.8.4...8.17.2)

Updates `jax` from 0.4.10 to 0.4.20
- [Release notes](https://github.com/google/jax/releases)
- [Changelog](https://github.com/google/jax/blob/main/CHANGELOG.md)
- [Commits](jax-ml/jax@jax-v0.4.10...jax-v0.4.20)

Updates `jaxlib` from 0.4.10 to 0.4.20
- [Release notes](https://github.com/google/jax/releases)
- [Changelog](https://github.com/google/jax/blob/main/CHANGELOG.md)
- [Commits](jax-ml/jax@jaxlib-v0.4.10...jaxlib-v0.4.20)

Updates `matplotlib` from 3.8.0 to 3.8.1
- [Release notes](https://github.com/matplotlib/matplotlib/releases)
- [Commits](matplotlib/matplotlib@v3.8.0...v3.8.1)

Updates `ml-dtypes` from 0.2.0 to 0.3.1
- [Release notes](https://github.com/jax-ml/ml_dtypes/releases)
- [Changelog](https://github.com/jax-ml/ml_dtypes/blob/main/CHANGELOG.md)
- [Commits](jax-ml/ml_dtypes@v0.2.0...v0.3.1)

Updates `openfermion` from 1.5.1 to 1.6.0
- [Release notes](https://github.com/quantumlib/OpenFermion/releases)
- [Commits](quantumlib/OpenFermion@v1.5.1...v1.6.0)

Updates `optax` from 0.1.5 to 0.1.7
- [Release notes](https://github.com/deepmind/optax/releases)
- [Commits](google-deepmind/optax@v0.1.5...v0.1.7)

Updates `numpy` from 1.23.5 to 1.25.2
- [Release notes](https://github.com/numpy/numpy/releases)
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst)
- [Commits](numpy/numpy@v1.23.5...v1.25.2)

Updates `pandas` from 2.1.1 to 2.1.3
- [Release notes](https://github.com/pandas-dev/pandas/releases)
- [Commits](pandas-dev/pandas@v2.1.1...v2.1.3)

Updates `pennylane` from 0.32.0 to 0.33.1
- [Release notes](https://github.com/PennyLaneAI/pennylane/releases)
- [Commits](PennyLaneAI/pennylane@v0.32.0...v0.33.1)

Updates `pennylane-lightning` from 0.32.0 to 0.33.1
- [Commits](https://github.com/XanaduAI/pennylane-lightning/commits)

Updates `qiskit-aer` from 0.12.2 to 0.13.0
- [Release notes](https://github.com/Qiskit/qiskit-aer/releases)
- [Commits](Qiskit/qiskit-aer@0.12.2...0.13.0)

Updates `qiskit-braket-provider` from 0.0.4 to 0.0.5
- [Release notes](https://github.com/qiskit-community/qiskit-braket-provider/releases)
- [Commits](qiskit-community/qiskit-braket-provider@v0.0.4...v0.0.5)

Updates `qiskit-terra` from 0.25.2.1 to 0.45.0
- [Release notes](https://github.com/Qiskit/qiskit/releases)
- [Changelog](https://github.com/Qiskit/qiskit/blob/main/docs/release_notes.rst)
- [Commits](Qiskit/qiskit@0.25.2.1...0.45.0)

---
updated-dependencies:
- dependency-name: botocore
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: awscli
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: boto3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: amazon-braket-pennylane-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: amazon-braket-sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: ipykernel
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: ipython
  dependency-type: direct:production
  dependency-group: dev-dependencies
- dependency-name: jax
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: jaxlib
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: matplotlib
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: ml-dtypes
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: openfermion
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: optax
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: numpy
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: pandas
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: pennylane
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: pennylane-lightning
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: qiskit-aer
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
- dependency-name: qiskit-braket-provider
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: dev-dependencies
- dependency-name: qiskit-terra
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dev-dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>
requirements.txt Outdated
qiskit-terra==0.25.2.1
scipy==1.11.3
qiskit-terra==0.45.0
scipy==1.9.3
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Downgrading as openfermion 1.6.0 depends on scipy<1.10.0 and >=1.1.0.

@AbeCoull
Copy link
Contributor Author

scipy/scipy#19344

scipy calls a numpy test library - this causes issues for the jobs example. Once openfermion can support a later version of scipy, Braket should look into later support for this library.

@AbeCoull AbeCoull changed the title infra: update dependencies infra: update dependencies to include numpy 1.25.x and Pennylane 0.33.x Nov 15, 2023
@AbeCoull
Copy link
Contributor Author

AbeCoull commented Nov 16, 2023

The build failures are expected currently. Waiting on a new scipy release to resolve and get this merged.

The release may be 1.12.0 or 1.11.4. Added 1.12.0 as a placeholder.

Edit: 1.11.4 released 2 days ago so adding that as the dependency.

@AbeCoull
Copy link
Contributor Author

As a result of patching stdout we are causing numpy issues which attempts to read directly there. stdout.output is now a Mock object and not iterable. These changes work to make it such that the old behavior returns

@AbeCoull AbeCoull requested a review from kshitijc December 1, 2023 00:10
@AbeCoull AbeCoull marked this pull request as ready for review December 5, 2023 22:36
@AbeCoull AbeCoull requested a review from a team as a code owner December 5, 2023 22:36
@speller26
Copy link
Member

I wouldn't call this infra because this actually changes what users will get in their environments.

@AbeCoull AbeCoull changed the title infra: update dependencies to include numpy 1.25.x and Pennylane 0.33.x feat: update dependencies to include numpy 1.25.x and Pennylane 0.33.x Dec 6, 2023
@AbeCoull AbeCoull merged commit 72bf793 into main Dec 9, 2023
8 checks passed
@AbeCoull AbeCoull deleted the update branch December 9, 2023 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants