Add optimisation_level
3 using GreedyPauliSimp
#1418
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check example notebooks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
# 04:00 every Saturday morning | |
- cron: '0 4 * * 6' | |
env: | |
PYTKET_REMOTE_QUANTINUUM_USERNAME: ${{ secrets.PYTKET_REMOTE_QUANTINUUM_USERNAME }} | |
PYTKET_REMOTE_QUANTINUUM_PASSWORD: ${{ secrets.PYTKET_REMOTE_QUANTINUUM_PASSWORD }} | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
outputs: | |
examples: ${{ steps.filter.outputs.examples }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/[email protected] | |
id: filter | |
with: | |
base: ${{ github.ref }} | |
filters: | | |
examples: | |
- 'examples/**' | |
- '.github/**' | |
check: | |
name: Check notebooks | |
needs: changes | |
if: | | |
github.event_name == 'schedule' || | |
github.event_name == 'push' || | |
( | |
github.event_name == 'pull_request' && | |
needs.changes.outputs.examples == 'true' | |
) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.10', '3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install required python packages | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install wheel | |
python -m pip install -e . | |
python -m pip install p2j jupyter | |
python -m pip install -r examples/requirements.txt | |
- name: Install expect tool | |
run: | | |
sudo apt-get update | |
sudo apt-get install expect | |
- name: test example notebooks | |
run: | | |
cd examples | |
./check-examples |