diff --git a/.github/workflows/qiskit-latest-latest.yml b/.github/workflows/qiskit-latest-latest.yml index d3ddeb2..51a60b2 100644 --- a/.github/workflows/qiskit-latest-latest.yml +++ b/.github/workflows/qiskit-latest-latest.yml @@ -40,7 +40,7 @@ jobs: - name: Install requirements run: | pip install --upgrade pip - pip install --upgrade 'qiskit<0.46.0' + pip install --upgrade qiskit pip install --upgrade pyscf pip install 'pytest<8.1.0' pip install pytest-mock pytest-cov flaky pytest-benchmark @@ -59,10 +59,10 @@ jobs: - name: Run PennyLane device integration 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 - pl-device-test --device=qiskit.basicaer --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=aer_simulator_unitary + 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 - name: Run plugin tests run: python -m pytest plugin_repo/tests -W "error::pennylane.PennyLaneDeprecationWarning" --tb=short -k 'not test_ibmq.py and not test_runtime.py' diff --git a/.github/workflows/qiskit-latest-rc.yml b/.github/workflows/qiskit-latest-rc.yml index 28dd76b..713f6d5 100644 --- a/.github/workflows/qiskit-latest-rc.yml +++ b/.github/workflows/qiskit-latest-rc.yml @@ -40,7 +40,7 @@ jobs: - name: Install requirements run: | pip install --upgrade pip - pip install --upgrade 'qiskit<0.46.0' + pip install --upgrade qiskit pip install --upgrade pyscf pip install 'pytest<8.1.0' pip install pytest-mock pytest-cov flaky pytest-benchmark @@ -59,10 +59,10 @@ jobs: - name: Run PennyLane device integration 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 - pl-device-test --device=qiskit.basicaer --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=aer_simulator_unitary + 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 - name: Run plugin tests run: python -m pytest plugin_repo/tests --tb=short -k 'not test_ibmq.py and not test_runtime.py' diff --git a/.github/workflows/qiskit-latest-stable.yml b/.github/workflows/qiskit-latest-stable.yml index 28d7da7..3e4268e 100644 --- a/.github/workflows/qiskit-latest-stable.yml +++ b/.github/workflows/qiskit-latest-stable.yml @@ -40,7 +40,7 @@ jobs: - name: Install requirements run: | pip install --upgrade pip - pip install --upgrade 'qiskit<0.46.0' + pip install --upgrade qiskit pip install --upgrade pyscf pip install 'pytest<8.1.0' pip install pytest-mock pytest-cov flaky pytest-benchmark @@ -60,10 +60,10 @@ jobs: if ! [ -x "$(command -v pl-device-test)" ]; then echo 'Error: Version of PennyLane does not provide device integration tests.' >&2 else - 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 - pl-device-test --device=qiskit.basicaer --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=aer_simulator_unitary + 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 fi - name: Run plugin tests diff --git a/.github/workflows/qiskit-stable-latest.yml b/.github/workflows/qiskit-stable-latest.yml index 6b5ecc0..9f65cd9 100644 --- a/.github/workflows/qiskit-stable-latest.yml +++ b/.github/workflows/qiskit-stable-latest.yml @@ -40,7 +40,7 @@ jobs: - name: Install requirements run: | pip install --upgrade pip - pip install --upgrade 'qiskit<0.46.0' + pip install --upgrade qiskit pip install --upgrade pyscf pip install 'pytest<8.1.0' pip install pytest-mock pytest-cov flaky pytest-benchmark @@ -65,10 +65,10 @@ jobs: - name: Run PennyLane device integration 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 - pl-device-test --device=qiskit.basicaer --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=aer_simulator_unitary + 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 - name: Run plugin tests run: python -m pytest plugin_repo/tests -W "error::pennylane.PennyLaneDeprecationWarning" --tb=short -k 'not test_ibmq.py and not test_runtime.py' diff --git a/.github/workflows/qiskit-stable-stable.yml b/.github/workflows/qiskit-stable-stable.yml index ba46219..929026c 100644 --- a/.github/workflows/qiskit-stable-stable.yml +++ b/.github/workflows/qiskit-stable-stable.yml @@ -40,7 +40,7 @@ jobs: - name: Install requirements run: | pip install --upgrade pip - pip install --upgrade 'qiskit<0.46.0' + pip install --upgrade qiskit pip install --upgrade pyscf pip install 'pytest<8.1.0' pip install pytest-mock pytest-cov flaky pytest-benchmark @@ -67,10 +67,10 @@ jobs: if ! [ -x "$(command -v pl-device-test)" ]; then echo 'Error: Version of PennyLane does not provide device integration tests.' >&2 else - 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 - pl-device-test --device=qiskit.basicaer --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=aer_simulator_unitary + 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 fi - name: Run plugin tests diff --git a/README.md b/README.md index 526e6ea..909325a 100644 --- a/README.md +++ b/README.md @@ -38,9 +38,10 @@ All entries in the matrix are tested against PennyLane latest (GitHub master). and `test_runtime.py` tests on the latest version of Pennylane and the plugin twice a week. Their status is shown below: -| | Status | -| :------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [Qiskit-IBMQ](https://github.com/PennyLaneAI/pennylane-qiskit) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/pennylane-qiskit/ibmq_tests.yml?branch=master)](https://github.com/PennyLaneAI/pennylane-qiskit/actions/workflows/ibmq_tests.yml) | +| | Status | +|:-------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [Qiskit-IBMQ](https://github.com/PennyLaneAI/pennylane-qiskit) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/pennylane-qiskit/ibmq_tests.yml?branch=master)](https://github.com/PennyLaneAI/pennylane-qiskit/actions/workflows/ibmq_tests.yml) | +| [Qiskit-IBMQ 1.0](https://github.com/PennyLaneAI/pennylane-qiskit) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/pennylane-qiskit/ibmq_tests_1.yml?branch=master)](https://github.com/PennyLaneAI/pennylane-qiskit/actions/workflows/ibmq_tests_1.yml) | ## QML repo diff --git a/compile.py b/compile.py index 05a21a6..9f9db95 100644 --- a/compile.py +++ b/compile.py @@ -8,12 +8,12 @@ "plugin": "qiskit", "gh_user": "PennyLaneAI", "which": ["latest", "stable"], - "requirements": ["'qiskit<0.46.0'", "pyscf"], + "requirements": ["qiskit", "pyscf"], "device_tests": [ - "--device=qiskit.basicaer --tb=short --skip-ops --shots=20000 --device-kwargs backend=qasm_simulator", + "--device=qiskit.basicsim --tb=short --skip-ops --shots=20000 --device-kwargs backend=basic_simulator", "--device=qiskit.aer --tb=short --skip-ops --shots=20000", - "--device=qiskit.basicaer --tb=short --skip-ops --shots=None --device-kwargs backend=statevector_simulator", - "--device=qiskit.aer --tb=short --skip-ops --shots=None --device-kwargs backend=aer_simulator_unitary", + "--device=qiskit.aer --tb=short --skip-ops --shots=None --device-kwargs backend=statevector_simulator", + "--device=qiskit.aer --tb=short --skip-ops --shots=None --device-kwargs backend=unitary_simulator", ], "test_kwargs": ["-k 'not test_ibmq.py and not test_runtime.py'"], "token": "IBMQX_TOKEN",