diff --git a/.github/workflows/rigetti-latest-latest.yml b/.github/workflows/rigetti-latest-latest.yml deleted file mode 100644 index ae7907b..0000000 --- a/.github/workflows/rigetti-latest-latest.yml +++ /dev/null @@ -1,72 +0,0 @@ -# Workflow template for testing plugins against PennyLane latest - -name: rigetti-latest-latest -on: - push: - branches: - - master - pull_request: - schedule: - - cron: '0 0 * * *' - workflow_dispatch: - - -env: - PLUGIN_REPO: PennyLaneAI/pennylane-rigetti - PLUGIN_BRANCH: master - PLUGIN_PACKAGE: pennylane_rigetti - PENNYLANE_BRANCH: master - - -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: Run Rigetti Quilc - run: docker run --rm -d -p 5555:5555 rigetti/quilc:1.23.0 -R - - - name: Run Rigetti QVM - run: docker run --rm -d -p 5000:5000 rigetti/qvm -S - - - name: Install requirements - run: | - pip install --upgrade pip - pip install --upgrade pyquil==2.28.2 - 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=rigetti.numpy_wavefunction --tb=short --skip-ops --shots=None - pl-device-test --device=rigetti.wavefunction --tb=short --skip-ops --shots=20000 - - - name: Run plugin tests - run: | - python -m pytest plugin_repo/tests --tb=short \ - -W "error::pennylane.PennyLaneDeprecationWarning" diff --git a/.github/workflows/rigetti-latest-rc.yml b/.github/workflows/rigetti-latest-rc.yml deleted file mode 100644 index b76c0d2..0000000 --- a/.github/workflows/rigetti-latest-rc.yml +++ /dev/null @@ -1,70 +0,0 @@ -# Workflow template for testing plugins against PennyLane release candidate - -name: rigetti-latest-rc -on: - push: - branches: - - master - pull_request: - schedule: - - cron: '0 0 * * *' - workflow_dispatch: - - -env: - PLUGIN_REPO: PennyLaneAI/pennylane-rigetti - PLUGIN_BRANCH: master - PLUGIN_PACKAGE: pennylane_rigetti - PENNYLANE_BRANCH: master - - -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: Run Rigetti Quilc - run: docker run --rm -d -p 5555:5555 rigetti/quilc:1.23.0 -R - - - name: Run Rigetti QVM - run: docker run --rm -d -p 5000:5000 rigetti/qvm -S - - - name: Install requirements - run: | - pip install --upgrade pip - pip install --upgrade pyquil==2.28.2 - 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.40.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=rigetti.numpy_wavefunction --tb=short --skip-ops --shots=None - pl-device-test --device=rigetti.wavefunction --tb=short --skip-ops --shots=20000 - - - name: Run plugin tests - run: python -m pytest plugin_repo/tests --tb=short diff --git a/.github/workflows/rigetti-latest-stable.yml b/.github/workflows/rigetti-latest-stable.yml deleted file mode 100644 index 1fe8e0e..0000000 --- a/.github/workflows/rigetti-latest-stable.yml +++ /dev/null @@ -1,72 +0,0 @@ -# Workflow template for testing plugins against PennyLane stable - -name: rigetti-latest-stable -on: - push: - branches: - - master - pull_request: - schedule: - - cron: '0 0 * * 0' - workflow_dispatch: - - -env: - PLUGIN_REPO: PennyLaneAI/pennylane-rigetti - PLUGIN_BRANCH: master - PLUGIN_PACKAGE: pennylane_rigetti - PENNYLANE_BRANCH: master - - -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: Run Rigetti Quilc - run: docker run --rm -d -p 5555:5555 rigetti/quilc:1.23.0 -R - - - name: Run Rigetti QVM - run: docker run --rm -d -p 5000:5000 rigetti/qvm -S - - - name: Install requirements - run: | - pip install --upgrade pip - pip install --upgrade pyquil==2.28.2 - 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=rigetti.numpy_wavefunction --tb=short --skip-ops --shots=None - pl-device-test --device=rigetti.wavefunction --tb=short --skip-ops --shots=20000 - fi - - - name: Run plugin tests - run: python -m pytest plugin_repo/tests --tb=short diff --git a/.github/workflows/rigetti-stable-latest.yml b/.github/workflows/rigetti-stable-latest.yml deleted file mode 100644 index a634d17..0000000 --- a/.github/workflows/rigetti-stable-latest.yml +++ /dev/null @@ -1,78 +0,0 @@ -# Workflow template for testing plugins against PennyLane latest - -name: rigetti-stable-latest -on: - push: - branches: - - master - pull_request: - schedule: - - cron: '0 0 * * *' - workflow_dispatch: - - -env: - PLUGIN_REPO: PennyLaneAI/pennylane-rigetti - PLUGIN_BRANCH: master - PLUGIN_PACKAGE: pennylane_rigetti - PENNYLANE_BRANCH: master - - -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: Run Rigetti Quilc - run: docker run --rm -d -p 5555:5555 rigetti/quilc:1.23.0 -R - - - name: Run Rigetti QVM - run: docker run --rm -d -p 5000:5000 rigetti/qvm -S - - - name: Install requirements - run: | - pip install --upgrade pip - pip install --upgrade pyquil==2.28.2 - 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=rigetti.numpy_wavefunction --tb=short --skip-ops --shots=None - pl-device-test --device=rigetti.wavefunction --tb=short --skip-ops --shots=20000 - - - name: Run plugin tests - run: | - python -m pytest plugin_repo/tests --tb=short \ - -W "error::pennylane.PennyLaneDeprecationWarning" diff --git a/.github/workflows/rigetti-stable-stable.yml b/.github/workflows/rigetti-stable-stable.yml deleted file mode 100644 index 3575550..0000000 --- a/.github/workflows/rigetti-stable-stable.yml +++ /dev/null @@ -1,79 +0,0 @@ -# Workflow template for testing plugins against PennyLane stable - -name: rigetti-stable-stable -on: - push: - branches: - - master - pull_request: - schedule: - - cron: '0 0 * * 0' - workflow_dispatch: - - -env: - PLUGIN_REPO: PennyLaneAI/pennylane-rigetti - PLUGIN_BRANCH: master - PLUGIN_PACKAGE: pennylane_rigetti - PENNYLANE_BRANCH: master - - -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: Run Rigetti Quilc - run: docker run --rm -d -p 5555:5555 rigetti/quilc:1.23.0 -R - - - name: Run Rigetti QVM - run: docker run --rm -d -p 5000:5000 rigetti/qvm -S - - - name: Install requirements - run: | - pip install --upgrade pip - pip install --upgrade pyquil==2.28.2 - 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=rigetti.numpy_wavefunction --tb=short --skip-ops --shots=None - pl-device-test --device=rigetti.wavefunction --tb=short --skip-ops --shots=20000 - fi - - - name: Run plugin tests - run: python -m pytest plugin_repo/tests --tb=short diff --git a/README.md b/README.md index 5704c74..66e2ff7 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,6 @@ All entries in the matrix are tested against PennyLane latest (GitHub master). | [Qulacs](https://github.com/PennyLaneAI/pennylane-qulacs) | ![](https://img.shields.io/pypi/v/pennylane-qulacs?color=green&label=%20&style=flat-square) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/qulacs-stable-stable.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/qulacs-stable-stable.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/qulacs-stable-latest.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/qulacs-stable-latest.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/qulacs-latest-stable.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/qulacs-latest-stable.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/qulacs-latest-latest.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/qulacs-latest-latest.yml) | | [AQT](https://github.com/PennyLaneAI/pennylane-aqt) | ![](https://img.shields.io/pypi/v/pennylane-aqt?color=green&label=%20&style=flat-square) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/aqt-stable-stable.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/aqt-stable-stable.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/aqt-stable-latest.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/aqt-stable-latest.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/aqt-latest-stable.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/aqt-latest-stable.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/aqt-latest-latest.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/aqt-latest-latest.yml) | | [IonQ](https://github.com/PennyLaneAI/pennylane-ionq) | ![](https://img.shields.io/pypi/v/pennylane-ionq?color=green&label=%20&style=flat-square) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/ionq-stable-stable.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/ionq-stable-stable.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/ionq-stable-latest.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/ionq-stable-latest.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/ionq-latest-stable.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/ionq-latest-stable.yml) | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/PennyLaneAI/plugin-test-matrix/ionq-latest-latest.yml?branch=master)](https://github.com/PennyLaneAI/plugin-test-matrix/actions/workflows/ionq-latest-latest.yml) | -| [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) | diff --git a/compile.py b/compile.py index 0d7587c..44150dd 100644 --- a/compile.py +++ b/compile.py @@ -41,24 +41,6 @@ "--device=qulacs.simulator --tb=short --skip-ops --shots=20000", ], }, - { - "plugin": "rigetti", - "gh_user": "PennyLaneAI", - "which": ["stable", "latest"], - "requirements": ["pyquil==2.28.2"], - "device_tests": [ - "--device=rigetti.numpy_wavefunction --tb=short --skip-ops --shots=None", - "--device=rigetti.wavefunction --tb=short --skip-ops --shots=20000", - # "--device=rigetti.qvm --tb=short --skip-ops --shots=20000 --device-kwargs device=4q-qvm", - ], - "additional_setup": dedent(""" - - name: Run Rigetti Quilc - run: docker run --rm -d -p 5555:5555 rigetti/quilc:1.23.0 -R - - - name: Run Rigetti QVM - run: docker run --rm -d -p 5000:5000 rigetti/qvm -S""" - ) - }, { "plugin": "aqt", "gh_user": "PennyLaneAI", @@ -91,9 +73,14 @@ "additional_setup": dedent(""" - name: Install TF run: | - pip install tensorflow~=$TF_VERSION keras~=$TF_VERSION""" + pip install tensorflow~=$TF_VERSION keras~=$TF_VERSION + + - name: Install JAX + run: | + pip install jax==$JAX_VERSION jaxlib==$JAX_VERSION""" + ), - "additional_env_vars": "TF_VERSION: 2.12.0\n TORCH_VERSION: 2.0.0+cpu", + "additional_env_vars": "TF_VERSION: 2.12.0\n TORCH_VERSION: 2.0.0+cpu\n JAX_VERSION: 0.4.28", "no_deprecation_error": True, }, ]