Skip to content

Commit

Permalink
Pinning qiskit in setup.py (#604)
Browse files Browse the repository at this point in the history
* Hard pin on qiskit

* Documenting change in the changelog
  • Loading branch information
PietropaoloFrisoni authored Dec 4, 2024
1 parent 4742bdb commit 0bc0dcf
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 39 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@

### Bug fixes 🐛

### Other changes

* The `qiskit` dependency has been temporarily pinned to version `<1.3` to prevent wrong results.
At present, `pennylane-qiskit` is incompatible with `qiskit 1.3`.
[(#603)](https://github.com/PennyLaneAI/pennylane-qiskit/pull/603)
[(#604)](https://github.com/PennyLaneAI/pennylane-qiskit/pull/604)

### Contributors ✍️

This release contains contributions from (in alphabetical order):

Pietropaolo Frisoni,
Andrija Paurevic

---
Expand Down
78 changes: 39 additions & 39 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
long_description = fh.read()

requirements = [
"qiskit>=0.32",
"qiskit>=0.32,<1.3",
"qiskit-aer",
"qiskit-ibm-runtime<=0.29",
"qiskit-ibm-provider",
Expand All @@ -33,39 +33,39 @@
]

info = {
'name': 'PennyLane-qiskit',
'version': version,
'maintainer': 'Xanadu',
'maintainer_email': '[email protected]',
'url': 'https://github.com/XanaduAI/pennylane-qiskit',
'license': 'Apache License 2.0',
'packages': [
'pennylane_qiskit'
],
'entry_points': {
'pennylane.plugins': [
'qiskit.remote = pennylane_qiskit:RemoteDevice',
'qiskit.aer = pennylane_qiskit:AerDevice',
'qiskit.basicaer = pennylane_qiskit:BasicAerDevice',
'qiskit.basicsim = pennylane_qiskit:BasicSimulatorDevice',
],
'pennylane.io': [
'qiskit = pennylane_qiskit:load',
'qiskit_op = pennylane_qiskit:load_pauli_op',
'qiskit_noise = pennylane_qiskit:load_noise_model',
'qasm = pennylane_qiskit:load_qasm',
'qasm_file = pennylane_qiskit:load_qasm_from_file',
],
},
'description': 'PennyLane plugin for Qiskit',
'long_description': open('README.rst').read(),
'provides': ["pennylane_qiskit"],
'install_requires': requirements,
"name": "PennyLane-qiskit",
"version": version,
"maintainer": "Xanadu",
"maintainer_email": "[email protected]",
"url": "https://github.com/XanaduAI/pennylane-qiskit",
"license": "Apache License 2.0",
"packages": ["pennylane_qiskit"],
"entry_points": {
"pennylane.plugins": [
"qiskit.remote = pennylane_qiskit:RemoteDevice",
"qiskit.aer = pennylane_qiskit:AerDevice",
"qiskit.basicaer = pennylane_qiskit:BasicAerDevice",
"qiskit.basicsim = pennylane_qiskit:BasicSimulatorDevice",
],
"pennylane.io": [
"qiskit = pennylane_qiskit:load",
"qiskit_op = pennylane_qiskit:load_pauli_op",
"qiskit_noise = pennylane_qiskit:load_noise_model",
"qasm = pennylane_qiskit:load_qasm",
"qasm_file = pennylane_qiskit:load_qasm_from_file",
],
},
"description": "PennyLane plugin for Qiskit",
"long_description": open("README.rst").read(),
"provides": ["pennylane_qiskit"],
"install_requires": requirements,
# 'extras_require': extra_requirements,
'command_options': {
'build_sphinx': {
'version': ('setup.py', version),
'release': ('setup.py', version)}}
"command_options": {
"build_sphinx": {
"version": ("setup.py", version),
"release": ("setup.py", version),
}
},
}

classifiers = [
Expand All @@ -79,12 +79,12 @@
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3 :: Only',
"Topic :: Scientific/Engineering :: Physics"
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering :: Physics",
]

setup(classifiers=classifiers, **(info))

0 comments on commit 0bc0dcf

Please sign in to comment.