Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] New Qiskit device prototype #513

Merged
merged 59 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
852783a
New Qiskit device prototype (#350)
lillian542 Apr 18, 2024
c83f8c8
Add compile_backend kwarg (#398)
lillian542 Apr 22, 2024
496d12a
Merge branch 'master' into new_device_feature_branch
austingmhuang Apr 22, 2024
41c73b0
Support both V1 and V2 (#399)
lillian542 Apr 22, 2024
0ba56a9
Scalar tests passing
austingmhuang Apr 23, 2024
a1ff606
Change mp_to_pauli to be more general
austingmhuang Apr 23, 2024
17c3e67
Hamiltonian testing
austingmhuang Apr 23, 2024
4f21e7d
tests
austingmhuang Apr 24, 2024
54c7483
Revert "tests"
austingmhuang Apr 24, 2024
160b14c
Revert "Hamiltonian testing"
austingmhuang Apr 24, 2024
4386d44
Revert "Change mp_to_pauli to be more general"
austingmhuang Apr 24, 2024
f71c1d4
revert
austingmhuang Apr 24, 2024
214cc32
Install PL dev intead of PL stable on CI (#516) (#518)
austingmhuang Apr 25, 2024
1593150
Delete ds store
austingmhuang Apr 25, 2024
bd4c2eb
Merge branch 'master' into new_device_feature_branch
austingmhuang Apr 25, 2024
5fe6092
import change
austingmhuang Apr 25, 2024
f0c6dc9
black
austingmhuang Apr 25, 2024
00b30f2
merge master
austingmhuang Apr 30, 2024
1b85a3a
some changes
austingmhuang Apr 30, 2024
d21adf8
linters
austingmhuang Apr 30, 2024
009aa76
black
austingmhuang Apr 30, 2024
0943af7
pylinting
austingmhuang Apr 30, 2024
98a3017
black
austingmhuang Apr 30, 2024
cbc23a3
small change
austingmhuang May 1, 2024
b25dda3
change conftest
austingmhuang May 1, 2024
64e0a4e
black linter
austingmhuang May 1, 2024
f47e285
fix
austingmhuang May 1, 2024
8d40745
Merge branch 'master' into new_device_feature_branch
austingmhuang May 1, 2024
6c37e6c
Generalize mp_to_pauli so that it can work with any observable that h…
austingmhuang May 1, 2024
fc1f98d
Merge branch 'master' into new_device_feature_branch
austingmhuang May 2, 2024
3c5dec3
Use old _execute_runtime_service for observables that are not compati…
austingmhuang May 7, 2024
f78851a
Move off of "ibmq_qasm_simulator" and towards using AerSimulator for …
austingmhuang May 10, 2024
5e11e3a
Merge branch 'master' into new_device_feature_branch
austingmhuang May 10, 2024
ae898be
Update reqs to 1.0 (#536)
austingmhuang May 22, 2024
9027131
Remove basicaer (#546)
austingmhuang May 23, 2024
83c9483
Remove use primitives and everything that depends on it (#538)
austingmhuang May 28, 2024
9e5df68
Remove ibmq devices (#550)
austingmhuang May 31, 2024
343e984
Migrate to v2 primitives (#539)
austingmhuang Jun 4, 2024
257bd93
merge conflicts
austingmhuang Jun 12, 2024
f1a2e18
Merge branch 'master' into new_device_feature_branch
austingmhuang Jun 13, 2024
db31979
pylint
austingmhuang Jun 13, 2024
f734b93
Process kwargs (#547)
austingmhuang Jun 13, 2024
6442fee
Docstrings for converter functions and new qiskit device (#552)
austingmhuang Jun 20, 2024
2bf4130
Diagonalize gates (#558)
austingmhuang Jun 21, 2024
74129f3
Merge branch 'master' into new_device_feature_branch
austingmhuang Jul 2, 2024
bd7a3cb
Qiskit session (#551)
austingmhuang Jul 5, 2024
b239c66
Tests with fakehardware (#553)
austingmhuang Jul 8, 2024
6f1bb7d
merge confs
austingmhuang Jul 9, 2024
ee26a16
Merge branch 'master' into new_device_feature_branch
austingmhuang Jul 9, 2024
d9baa67
Merge branch 'master' into new_device_feature_branch
austingmhuang Jul 9, 2024
ec6968b
fix merge conf
austingmhuang Jul 9, 2024
30f675c
fix setup.py
austingmhuang Jul 9, 2024
3d1ba4e
reqs.txt
austingmhuang Jul 9, 2024
19586e3
changelog changes
austingmhuang Jul 9, 2024
b6c3989
Use new qiskit device as the base for remote (#566)
austingmhuang Jul 12, 2024
23533e0
Plugin page update (#563)
austingmhuang Jul 12, 2024
e9e30de
Tracker functionality (#533)
austingmhuang Jul 15, 2024
a97f79c
Update CHANGELOG.md
austingmhuang Jul 24, 2024
984c7a5
CHANGELOG
austingmhuang Jul 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ibmq_tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: IBMQ integration tests
name: IBMQ integration tests with Qiskit 1.0
on:
schedule:
- cron: '0 0 * * 0,4' # At 00:00 on Sunday and Thursday.
- cron: '1 0 * * 0,4' # At 01:00 on Sunday and Thursday.
workflow_dispatch:

jobs:
Expand All @@ -28,7 +28,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-ci-legacy.txt
pip install -r requirements-ci.txt
pip install wheel pytest pytest-cov pytest-mock flaky --upgrade
pip freeze

Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/ibmq_tests_1.yml

This file was deleted.

17 changes: 6 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: Tests for 1.0
on:
push:
branches:
Expand Down Expand Up @@ -30,7 +30,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/PennyLaneAI/pennylane.git
pip install -r requirements-ci-legacy.txt
pip install -r requirements-ci.txt
pip install wheel pytest pytest-cov pytest-mock flaky --upgrade
pip freeze

Expand All @@ -39,12 +39,9 @@ jobs:
pip install git+https://github.com/PennyLaneAI/pennylane-qiskit.git@${{ github.ref }}
pip freeze

- name: Run tests
# Skip IBMQ and Runtime tests as they depend on IBMQ's availability and
# easily result in timeouts
- name: Run standard Qiskit plugin tests
# Run the standard tests with the most recent version of Qiskit
run: python -m pytest tests -k 'not test_ibmq.py and not test_runtime.py' --cov=pennylane_qiskit --cov-report=term-missing --cov-report=xml -p no:warnings --tb=native
env:
IBMQX_TOKEN: ${{ secrets.IBMQX_TOKEN_TEST }}

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down Expand Up @@ -72,19 +69,17 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/PennyLaneAI/pennylane.git
pip install -r requirements-ci-legacy.txt
pip install -r requirements-ci.txt
pip install wheel pytest pytest-cov pytest-mock pytest-benchmark flaky --upgrade
pip freeze

- name: Install Plugin
run: |
python setup.py bdist_wheel
pip install dist/PennyLane*.whl
pip freeze

- name: Run tests
run: |
pl-device-test --device=qiskit.basicaer --tb=short --skip-ops --shots=20000 --device-kwargs backend=qasm_simulator
pl-device-test --device=qiskit.basicsim --tb=short --skip-ops --shots=20000 --device-kwargs backend=basic_simulator
pl-device-test --device=qiskit.aer --tb=short --skip-ops --shots=20000 --device-kwargs backend=qasm_simulator
pl-device-test --device=qiskit.aer --tb=short --skip-ops --shots=None --device-kwargs backend=statevector_simulator
pl-device-test --device=qiskit.aer --tb=short --skip-ops --shots=None --device-kwargs backend=unitary_simulator
Expand Down
91 changes: 0 additions & 91 deletions .github/workflows/tests_qiskit_1.yml

This file was deleted.

14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@
[(#514)](https://github.com/PennyLaneAI/pennylane-qiskit/pull/514)

### Breaking changes 💔
* Support has been removed for Qiskit versions below 0.46. The minimum required version for Qiskit is now 1.0.
If you want to continue to use older versions of Qiskit with the plugin, please use version 0.36 of
the Pennylane-Qiskit plugin.
[(#536)](https://github.com/PennyLaneAI/pennylane-qiskit/pull/536)

* The test suite no longer runs for Qiskit versions below 0.46.
[(#536)](https://github.com/PennyLaneAI/pennylane-qiskit/pull/536)

* The ``qiskit.basicaer`` device has been removed because it is not supported for versions of Qiskit above 0.46.
[(#546)](https://github.com/PennyLaneAI/pennylane-qiskit/pull/546)

* The IBM quantum devices, ``qiskit.ibmq``, ``qiskit.ibmq.circuit_runner`` and ``qiskit.ibmq.sampler``, have been removed due to deprecations of the IBMProvider and the cloud simulator "ibmq_qasm_simulator".
[(#550)](https://github.com/PennyLaneAI/pennylane-qiskit/pull/550)
austingmhuang marked this conversation as resolved.
Show resolved Hide resolved

### Deprecations 👋

Expand All @@ -21,6 +34,7 @@
### Contributors ✍️

This release contains contributions from (in alphabetical order):
Austin Huang

obliviateandsurrender marked this conversation as resolved.
Show resolved Hide resolved
Utkarsh Azad
Mashhood Khan
austingmhuang marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
32 changes: 0 additions & 32 deletions doc/devices/basicaer.rst

This file was deleted.

84 changes: 0 additions & 84 deletions doc/devices/ibmq.rst

This file was deleted.

21 changes: 0 additions & 21 deletions doc/devices/runtime.rst

This file was deleted.

Loading