From c503545f2d18da81a68dc66b6402f8b7f724e4c1 Mon Sep 17 00:00:00 2001 From: PietropaoloFrisoni Date: Tue, 3 Dec 2024 16:06:57 -0500 Subject: [PATCH 1/2] Hard pin on qiskit --- setup.py | 78 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/setup.py b/setup.py index a71245ae..ebc2127d 100644 --- a/setup.py +++ b/setup.py @@ -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", @@ -33,39 +33,39 @@ ] info = { - 'name': 'PennyLane-qiskit', - 'version': version, - 'maintainer': 'Xanadu', - 'maintainer_email': 'software@xanadu.ai', - '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": "software@xanadu.ai", + "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 = [ @@ -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)) From 1b0b516a2e9974fce39ff219e2b8e159efb33706 Mon Sep 17 00:00:00 2001 From: PietropaoloFrisoni Date: Tue, 3 Dec 2024 18:06:41 -0500 Subject: [PATCH 2/2] Documenting change in the changelog --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92006a68..fbadb1b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 ---