From 9380c18fedd10aa2ecd24cc7de4890a8101bff6d Mon Sep 17 00:00:00 2001 From: Mudit Pandey Date: Mon, 30 Sep 2024 09:55:41 -0400 Subject: [PATCH 1/2] Remove Quantum Inspire from PTM --- .../quantuminspire-latest-latest.yml | 66 ---------------- .../workflows/quantuminspire-latest-rc.yml | 66 ---------------- .../quantuminspire-latest-stable.yml | 68 ----------------- .../quantuminspire-stable-latest.yml | 72 ------------------ .../quantuminspire-stable-stable.yml | 75 ------------------- README.md | 2 - 6 files changed, 349 deletions(-) delete mode 100644 .github/workflows/quantuminspire-latest-latest.yml delete mode 100644 .github/workflows/quantuminspire-latest-rc.yml delete mode 100644 .github/workflows/quantuminspire-latest-stable.yml delete mode 100644 .github/workflows/quantuminspire-stable-latest.yml delete mode 100644 .github/workflows/quantuminspire-stable-stable.yml diff --git a/.github/workflows/quantuminspire-latest-latest.yml b/.github/workflows/quantuminspire-latest-latest.yml deleted file mode 100644 index 53c3e43..0000000 --- a/.github/workflows/quantuminspire-latest-latest.yml +++ /dev/null @@ -1,66 +0,0 @@ -# Workflow template for testing plugins against PennyLane latest - -name: quantuminspire-latest-latest -on: - push: - branches: - - master - pull_request: - schedule: - - cron: '0 0 * * *' - workflow_dispatch: - - -env: - PLUGIN_REPO: QuTech-Delft/pennylane-quantuminspire - PLUGIN_BRANCH: master - PLUGIN_PACKAGE: pennylane_quantuminspire - PENNYLANE_BRANCH: master - QI_TOKEN: ${{ secrets.QI_TOKEN }} - - -jobs: - tests: - runs-on: ubuntu-latest - - strategy: - fail-fast: false - - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: "3.10" - - - name: Install requirements - run: | - pip install --upgrade pip - pip install --upgrade pennylane-qiskit - pip install --upgrade quantuminspire - pip install --upgrade qiskit - pip install 'pytest<8.1.0' - pip install pytest-mock pytest-cov flaky pytest-benchmark - pip freeze - - - name: Install PennyLane and Plugin - run: | - pip install git+https://github.com/PennyLaneAI/pennylane.git \ - git+https://github.com/${{ env.PLUGIN_REPO }}.git@${{ env.PLUGIN_BRANCH }} - - - uses: actions/checkout@v2 - with: - repository: ${{ env.PLUGIN_REPO }} - path: plugin_repo - ref: ${{ env.PLUGIN_BRANCH }} - - - name: Run PennyLane device integration tests - run: | - pl-device-test --device=quantuminspire.qi --tb=short --skip-ops --shots=4096 --device-kwargs backend='QX single-node simulator' - - - name: Run plugin tests - run: python -m pytest plugin_repo/tests/unit_test -W "error::pennylane.PennyLaneDeprecationWarning" --tb=short diff --git a/.github/workflows/quantuminspire-latest-rc.yml b/.github/workflows/quantuminspire-latest-rc.yml deleted file mode 100644 index cd8ff37..0000000 --- a/.github/workflows/quantuminspire-latest-rc.yml +++ /dev/null @@ -1,66 +0,0 @@ -# Workflow template for testing plugins against PennyLane release candidate - -name: quantuminspire-latest-rc -on: - push: - branches: - - master - pull_request: - schedule: - - cron: '0 0 * * *' - workflow_dispatch: - - -env: - PLUGIN_REPO: QuTech-Delft/pennylane-quantuminspire - PLUGIN_BRANCH: master - PLUGIN_PACKAGE: pennylane_quantuminspire - PENNYLANE_BRANCH: master - QI_TOKEN: ${{ secrets.QI_TOKEN }} - - -jobs: - tests: - runs-on: ubuntu-latest - - strategy: - fail-fast: false - - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: "3.10" - - - name: Install requirements - run: | - pip install --upgrade pip - pip install --upgrade pennylane-qiskit - pip install --upgrade quantuminspire - pip install --upgrade qiskit - pip install 'pytest<8.1.0' - pip install pytest-mock pytest-cov flaky pytest-benchmark - pip freeze - - - name: Install PennyLane and Plugin - run: | - pip install git+https://github.com/PennyLaneAI/pennylane.git@v0.38.0-rc0 \ - git+https://github.com/${{ env.PLUGIN_REPO }}.git@${{ env.PLUGIN_BRANCH }} - - - uses: actions/checkout@v2 - with: - repository: ${{ env.PLUGIN_REPO }} - path: plugin_repo - ref: ${{ env.PLUGIN_BRANCH }} - - - name: Run PennyLane device integration tests - run: | - pl-device-test --device=quantuminspire.qi --tb=short --skip-ops --shots=4096 --device-kwargs backend='QX single-node simulator' - - - name: Run plugin tests - run: python -m pytest plugin_repo/tests/unit_test --tb=short diff --git a/.github/workflows/quantuminspire-latest-stable.yml b/.github/workflows/quantuminspire-latest-stable.yml deleted file mode 100644 index fcfce94..0000000 --- a/.github/workflows/quantuminspire-latest-stable.yml +++ /dev/null @@ -1,68 +0,0 @@ -# Workflow template for testing plugins against PennyLane stable - -name: quantuminspire-latest-stable -on: - push: - branches: - - master - pull_request: - schedule: - - cron: '0 0 * * 0' - workflow_dispatch: - - -env: - PLUGIN_REPO: QuTech-Delft/pennylane-quantuminspire - PLUGIN_BRANCH: master - PLUGIN_PACKAGE: pennylane_quantuminspire - PENNYLANE_BRANCH: master - QI_TOKEN: ${{ secrets.QI_TOKEN }} - - -jobs: - tests: - runs-on: ubuntu-latest - - strategy: - fail-fast: false - - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: "3.10" - - - name: Install requirements - run: | - pip install --upgrade pip - pip install --upgrade pennylane-qiskit - pip install --upgrade quantuminspire - pip install --upgrade qiskit - pip install 'pytest<8.1.0' - pip install pytest-mock pytest-cov flaky pytest-benchmark - pip freeze - - - name: Install PennyLane and Plugin - run: | - pip install pennylane git+https://github.com/${{ env.PLUGIN_REPO }}.git@${{ env.PLUGIN_BRANCH }} - - - uses: actions/checkout@v2 - with: - repository: ${{ env.PLUGIN_REPO }} - path: plugin_repo - ref: ${{ env.PLUGIN_BRANCH }} - - name: Run PennyLane device integration tests - run: | - 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=quantuminspire.qi --tb=short --skip-ops --shots=4096 --device-kwargs backend='QX single-node simulator' - fi - - - name: Run plugin tests - run: python -m pytest plugin_repo/tests/unit_test --tb=short diff --git a/.github/workflows/quantuminspire-stable-latest.yml b/.github/workflows/quantuminspire-stable-latest.yml deleted file mode 100644 index 22ebea8..0000000 --- a/.github/workflows/quantuminspire-stable-latest.yml +++ /dev/null @@ -1,72 +0,0 @@ -# Workflow template for testing plugins against PennyLane latest - -name: quantuminspire-stable-latest -on: - push: - branches: - - master - pull_request: - schedule: - - cron: '0 0 * * *' - workflow_dispatch: - - -env: - PLUGIN_REPO: QuTech-Delft/pennylane-quantuminspire - PLUGIN_BRANCH: master - PLUGIN_PACKAGE: pennylane_quantuminspire - PENNYLANE_BRANCH: master - QI_TOKEN: ${{ secrets.QI_TOKEN }} - - -jobs: - tests: - runs-on: ubuntu-latest - - strategy: - fail-fast: false - - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: "3.10" - - - name: Install requirements - run: | - pip install --upgrade pip - pip install --upgrade pennylane-qiskit - pip install --upgrade quantuminspire - pip install --upgrade qiskit - pip install 'pytest<8.1.0' - pip install pytest-mock pytest-cov flaky pytest-benchmark - pip freeze - - - name: Install PennyLane and Plugin - run: | - pip install git+https://github.com/PennyLaneAI/pennylane.git \ - ${{ env.PLUGIN_PACKAGE }} --upgrade - - - name: Get plugin version - id: plugin-version - run: | - PLUGIN_VERSION=$(python -c "import pkg_resources as pkg; print(pkg.get_distribution('${{ env.PLUGIN_PACKAGE }}').version)") - echo "version=$PLUGIN_VERSION" >> $GITHUB_OUTPUT - - - uses: actions/checkout@v2 - with: - repository: ${{ env.PLUGIN_REPO }} - path: plugin_repo - ref: v${{ steps.plugin-version.outputs.version }} - - - name: Run PennyLane device integration tests - run: | - pl-device-test --device=quantuminspire.qi --tb=short --skip-ops --shots=4096 --device-kwargs backend='QX single-node simulator' - - - name: Run plugin tests - run: python -m pytest plugin_repo/tests/unit_test -W "error::pennylane.PennyLaneDeprecationWarning" --tb=short diff --git a/.github/workflows/quantuminspire-stable-stable.yml b/.github/workflows/quantuminspire-stable-stable.yml deleted file mode 100644 index 72b058b..0000000 --- a/.github/workflows/quantuminspire-stable-stable.yml +++ /dev/null @@ -1,75 +0,0 @@ -# Workflow template for testing plugins against PennyLane stable - -name: quantuminspire-stable-stable -on: - push: - branches: - - master - pull_request: - schedule: - - cron: '0 0 * * 0' - workflow_dispatch: - - -env: - PLUGIN_REPO: QuTech-Delft/pennylane-quantuminspire - PLUGIN_BRANCH: master - PLUGIN_PACKAGE: pennylane_quantuminspire - PENNYLANE_BRANCH: master - QI_TOKEN: ${{ secrets.QI_TOKEN }} - - -jobs: - tests: - runs-on: ubuntu-latest - - strategy: - fail-fast: false - - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: "3.10" - - - name: Install requirements - run: | - pip install --upgrade pip - pip install --upgrade pennylane-qiskit - pip install --upgrade quantuminspire - pip install --upgrade qiskit - pip install 'pytest<8.1.0' - pip install pytest-mock pytest-cov flaky pytest-benchmark - pip freeze - - - name: Install PennyLane and Plugin - run: | - pip install pennylane ${{ env.PLUGIN_PACKAGE }} --upgrade - pip freeze - - - name: Get plugin version - id: plugin-version - run: | - PLUGIN_VERSION=$(python -c "import pkg_resources as pkg; print(pkg.get_distribution('${{ env.PLUGIN_PACKAGE }}').version)") - echo "version=$PLUGIN_VERSION" >> $GITHUB_OUTPUT - - - uses: actions/checkout@v2 - with: - repository: ${{ env.PLUGIN_REPO }} - path: plugin_repo - ref: v${{ steps.plugin-version.outputs.version }} - - name: Run PennyLane device integration tests - run: | - 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=quantuminspire.qi --tb=short --skip-ops --shots=4096 --device-kwargs backend='QX single-node simulator' - fi - - - name: Run plugin tests - run: python -m pytest plugin_repo/tests/unit_test --tb=short diff --git a/README.md b/README.md index 753143a..9875a14 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,6 @@ All entries in the matrix are tested against PennyLane latest (GitHub master). | [Rigetti](https://github.com/PennyLaneAI/pennylane-rigetti) | ![](https://img.shields.io/pypi/v/pennylane-rigetti?color=green&label=%20&style=flat-square) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/rigetti-stable-stable.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/rigetti-stable-stable.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/rigetti-stable-latest.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/rigetti-stable-latest.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/rigetti-latest-stable.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/rigetti-latest-stable.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/rigetti-latest-latest.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/rigetti-latest-latest.yml) | | [Lightning](https://github.com/PennyLaneAI/pennylane-lightning) | ![](https://img.shields.io/pypi/v/pennylane-lightning?color=green&label=%20&style=flat-square) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/pennylane-lightning/compat-check-stable-stable.yml?branch=master)](https://github.com/PennyLaneAI/pennylane-lightning/actions/workflows/compat-check-stable-stable.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/pennylane-lightning/compat-check-stable-latest.yml?branch=master)](https://github.com/PennyLaneAI/pennylane-lightning/actions/workflows/compat-check-stable-latest.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/pennylane-lightning/compat-check-latest-stable.yml?branch=master)](https://github.com/PennyLaneAI/pennylane-lightning/actions/workflows/compat-check-latest-stable.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/pennylane-lightning/compat-check-latest-latest.yml?branch=master)](https://github.com/PennyLaneAI/pennylane-lightning/actions/workflows/compat-check-latest-latest.yml) | | [Braket](https://github.com/aws/amazon-braket-pennylane-plugin-python) | ![](https://img.shields.io/pypi/v/amazon-braket-pennylane-plugin?color=green&label=%20&style=flat-square) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/braket-stable-stable.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/braket-stable-stable.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/braket-stable-latest.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/braket-stable-latest.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/braket-latest-stable.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/braket-latest-stable.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/braket-latest-latest.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/braket-latest-latest.yml) | -| [Quantum Inspire](https://github.com/QuTech-Delft/pennylane-quantuminspire) | ![](https://img.shields.io/pypi/v/pennylane-quantuminspire?color=green&label=%20&style=flat-square) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/quantuminspire-stable-stable.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/quantuminspire-stable-stable.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/quantuminspire-stable-latest.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/quantuminspire-stable-latest.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/quantuminspire-latest-stable.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/quantuminspire-latest-stable.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/quantuminspire-latest-latest.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/quantuminspire-latest-latest.yml) | *Notes:* @@ -134,7 +133,6 @@ The latest of all plugins are tested against the PennyLane release candidate bra | [IonQ](https://github.com/PennyLaneAI/pennylane-ionq) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/ionq-latest-rc.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/ionq-latest-rc.yml) | | [Rigetti](https://github.com/PennyLaneAI/pennylane-rigetti) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/rigetti-latest-rc.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/rigetti-latest-rc.yml) | | [Braket](https://github.com/aws/amazon-braket-pennylane-plugin-python) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/braket-latest-rc.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/braket-latest-rc.yml) | -| [Quantum Inspire](https://github.com/QuTech-Delft/pennylane-quantuminspire) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/quantuminspire-latest-rc.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/quantuminspire-latest-rc.yml) | The latest and release candidate of Lightning and Catalyst are tested with the release candidate of PennyLane: From 64fafffc112871c076cc430377b1cafac636bdb2 Mon Sep 17 00:00:00 2001 From: Mudit Pandey Date: Mon, 30 Sep 2024 10:09:12 -0400 Subject: [PATCH 2/2] Remove from compile.py --- compile.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/compile.py b/compile.py index 68a1f1f..0d7587c 100644 --- a/compile.py +++ b/compile.py @@ -96,18 +96,6 @@ "additional_env_vars": "TF_VERSION: 2.12.0\n TORCH_VERSION: 2.0.0+cpu", "no_deprecation_error": True, }, - { - "plugin": "quantuminspire", - "gh_user": "QuTech-Delft", - "which": ["stable", "latest"], - "requirements": ["pennylane-qiskit", "quantuminspire", "qiskit"], - "branch": "master", - "device_tests": [ - "--device=quantuminspire.qi --tb=short --skip-ops --shots=4096 --device-kwargs backend='QX single-node simulator'", - ], - "tests_loc": "tests/unit_test", - "token": "QI_TOKEN", - }, ]