Skip to content

Commit

Permalink
Add a warning about versioning (#1151)
Browse files Browse the repository at this point in the history
The `ensemble_multi_qpu` demo is not compatible with the most recent
versions of Qiskit (and the PennyLane Qiskit plugin). We add a warning
with compatible versions.
  • Loading branch information
lillian542 authored Jul 5, 2024
1 parent 62bff23 commit 66c201a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion demonstrations/ensemble_multi_qpu.metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
],
"dateOfPublication": "2020-02-14T00:00:00+00:00",
"dateOfLastModification": "2024-03-04T00:00:00+00:00",
"dateOfLastModification": "2024-07-05T00:00:00+00:00",
"categories": [
"Quantum Machine Learning"
],
Expand Down
6 changes: 6 additions & 0 deletions demonstrations/ensemble_multi_qpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
This tutorial outlines how two QPUs can be combined in parallel to help solve a machine learning
classification problem.
.. warning::
This demo does not work with the latest version of Qiskit or the Pennylane-Qiskit plugin.
It is compatible with ``qiskit==0.46`` and ``pennylane-qiskit==0.35.1``. Older versions of
Qiskit and the Pennylane-Qiskit plugin should not be installed in environments with an
existing installation of Qiskit 1.0 or above.
We use the ``rigetti.qvm`` device to simulate one QPU and the ``qiskit.aer`` device to
simulate another. Each QPU makes an independent prediction, and an ensemble model is
formed by choosing the prediction of the most confident QPU. The iris dataset is used in this
Expand Down

0 comments on commit 66c201a

Please sign in to comment.