github PennyLaneAI/pennylane-qiskit v0.43.0
Release 0.43.0

one day ago

Improvements 🛠

  • Add pre-commit hook and requirements-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 changes shots=None at initialization.
    Instead, the analytic_warning transform issues a warning only at execution time,
    and leaves shots=None unchanged; the Qiskit backend will then set it's own default for the number of shots.
    To ensure a consistent experience, use qml.set_shots(shots) on each QNode executed
    with QiskitDevice:

    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()

    (#650)
    (#654)

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.

Don't miss a new pennylane-qiskit release

NewReleases is sending notifications on new releases.