Skip to content

testing dev python updates #1510

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

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/v2-build-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ jobs:
python-version: '3.11'

- name: Install dependencies
run: pip install . && poetry config warnings.export false
run: pip install . && poetry config warnings.export false
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
run: pip install . && poetry config warnings.export false
run: pip install . && poetry config warnings.export false


- name: Make demo name list
id: demo-name-list
Expand Down
2 changes: 1 addition & 1 deletion constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ aiohttp==3.9.5
fsspec==2024.6.1
h5py==3.11.0
openfermionpyscf==0.5
openqaoa-core==0.2.5
# openqaoa-core==0.2.5
qiskit>=1.0.0
qiskit-aer>=0.14.0,<0.16.0
qiskit_ibm_runtime==0.29.0
Expand Down
2 changes: 1 addition & 1 deletion demonstrations_v2/tutorial_QUBO/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
],
"executable_stable": true,
"executable_latest": true,
"executable_latest": false,
"dateOfPublication": "2024-02-29T00:00:00+00:00",
"dateOfLastModification": "2024-11-06T00:00:00+00:00",
"categories": [
Expand Down
2 changes: 1 addition & 1 deletion demonstrations_v2/tutorial_QUBO/requirements.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dimod
docplex
dwave-ocean-sdk==7.1.0
openqaoa-core
# openqaoa-core
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
# openqaoa-core
## TODO:
## openqaoa does not support py3.11, reenable when support is available
# openqaoa-core

pandas
2 changes: 1 addition & 1 deletion demonstrations_v2/tutorial_mbqc/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
],
"executable_stable": true,
"executable_latest": true,
"executable_latest": false,
"dateOfPublication": "2022-12-05T00:00:00+00:00",
"dateOfLastModification": "2025-05-27T00:00:00+00:00",
"categories": [
Expand Down
2 changes: 1 addition & 1 deletion demonstrations_v2/tutorial_mbqc/requirements.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
flamingpy
# flamingpy
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
# flamingpy
## TODO:
## FlamingPy is disabled as it does not support py3.11, we will need to renable this when upgrade is made
# flamingpy

networkx
plotly
29 changes: 1 addition & 28 deletions dependencies/constraints-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,6 @@ iqpot @ git+https://github.com/XanaduAI/iqpopt.git#egg=iqpopt
pennylane-catalyst
pennylane-lightning

# TODO: Remove these and keep the ones below after testing QML pipeline v2
# chex<1.0.0
# cirq-core==1.4.1
# pyqrack==1.32.12
# numpy~=1.24
# matplotlib==3.7.2
# jax==0.4.28
# jaxlib==0.4.28
# jaxopt==0.8.4
# aiohttp==3.9.5
# fastapi<1.0.0
# fsspec==2024.6.1
# h5py==3.11.0
# openfermionpyscf==0.5
# openqaoa-core==0.2.5
# qiskit>=1.0.0
# qiskit-aer>=0.14.0,<0.16.0
# qiskit_ibm_runtime==0.29.0
# torch==2.1.2+cpu ; sys_platform != 'darwin'
# torch==2.1.2 ; sys_platform == 'darwin'
# torchvision==0.16.2+cpu ; sys_platform != 'darwin'
# torchvision==0.16.2 ; sys_platform == 'darwin'
# tensorflow==2.16.2
# typing-extensions==4.14.0
# optax==0.2.3
# quimb==1.8.2
# kahypar==1.1.7

chex<1.0.0
pyqrack==1.32.12
Expand All @@ -51,7 +24,7 @@ fastapi<1.0.0
fsspec==2024.6.1
h5py==3.11.0
openfermionpyscf==0.5
openqaoa-core==0.2.5
# openqaoa-core==0.2.5
qiskit>=1.0.0
qiskit-aer>=0.14.0,<0.16.0
qiskit_ibm_runtime==0.29.0
Expand Down
2 changes: 1 addition & 1 deletion dependencies/constraints-stable.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ aiohttp==3.9.5
fsspec==2024.6.1
h5py==3.11.0
openfermionpyscf==0.5
openqaoa-core==0.2.5
# openqaoa-core==0.2.5
qiskit>=1.0.0
qiskit-aer>=0.14.0,<0.16.0
qiskit_ibm_runtime==0.29.0
Expand Down
345 changes: 202 additions & 143 deletions poetry.lock

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.0"
description = "Introductions to key concepts in quantum machine learning, as well as tutorials and implementations from cutting-edge QML research."
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10.0"
requires-python = ">=3.10.0,<3.13.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't this be >=3.11?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No unfortunately mitiq still yells at us when we do.

Here is a snippet of the error:

The current project's supported Python range (>=3.11.0) is not compatible with some of the required packages Python requirement:
  - mitiq requires Python <3.13,>=3.10, so it will not be installable for Python >=3.13

Because qml depends on mitiq (0.43.0) which requires Python <3.13,>=3.10, version solving failed.

  * Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties

    For mitiq, a possible solution would be to set the `python` property to ">=3.11.0,<3.13"

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add a #TODO (+ story to update once mitiq is updated)?

authors = [
{ name = "PennyLaneAI", email = "[email protected]" }
]
Expand Down Expand Up @@ -79,7 +79,7 @@ seaborn = "0.13.2"
kahypar = "1.1.7"
openfermionpyscf = "0.5"
covalent = "0.227.0rc0"
openqaoa-core = "0.2.5"

dwave-ocean-sdk = "7.0.0"
pyzx = "0.9.0"
plotly = ">=4.5.0"
Expand Down Expand Up @@ -121,7 +121,6 @@ torchvision = [

# The following packages are platform locked to not install on MacOS as the installation breaks
scikit-learn = { version = "1.3.0", markers = "platform_machine == 'x86_64'" }
flamingpy = { version = ">=0.10.1b1", markers = "platform_machine == 'x86_64'" }
qulacs = { version = "0.6.1", markers = "platform_machine == 'x86_64'" }

[tool.poetry.group.metadata-validation]
Expand Down