Improvements 🛠
- Add
pre-commit
hook andrequirements-dev.txt
file for installation of development dependencies.
(#657)
Breaking changes 💔
-
The minimum supported version of PennyLane is now v0.43.0.
(#663) -
The supported Qiskit versions are now capped at 2.2.0, meaning versions above 2.2.0 are not compatible with this release.
(#661) -
Remove support for Qiskit 1.0 and add support for Qiskit 2.0.
(#653)
(#659) -
Remove support for Python 3.10 and add support for Python 3.13.
(#646) -
QiskitDevice
no longer warns or changesshots=None
at initialization.
Instead, theanalytic_warning
transform issues a warning only at execution time,
and leavesshots=None
unchanged; the Qiskit backend will then set it's own default for the number of shots.
To ensure a consistent experience, useqml.set_shots(shots)
on each QNode executed
withQiskitDevice
:dev = qml.device("qiskit.aer", wires=2) @qml.set_shots(1000) @qml.qnode(dev) def circuit(): qml.Hadamard(wires=0) qml.CNOT(wires=[0, 1]) return qml.expval(qml.PauliZ(0)) # or equivalently, without the decorator: # circuit = qml.set_shots(circuit, shots=1000) result = circuit()
Internal changes ⚙️
- Updated tests to use
qml.set_shots
for setting shot values on circuits.
(#644)
Documentation 📝
-
Updated documentation for connecting to IBM backends.
(#647) -
Fix minor typos in documentation and docstrings.
(#648)
Contributors ✍️
This release contains contributions from (in alphabetical order):
Yushao Chen,
Inho Choi,
Austin Huang,
Andrija Paurevic.