Tighten stabilizer check memory estimate #47
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| rust: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - run: cargo fmt --check | |
| - run: cargo clippy --workspace --all-targets --all-features -- -D warnings | |
| - run: cargo test --workspace | |
| python-quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - run: python -m pip install --upgrade "black>=24.10,<26" "mypy>=1.14,<2" "ruff>=0.9,<1" "numpy>=1.23,<2.5" | |
| - run: black --check python tests benchmarks scripts | |
| - run: ruff check python tests benchmarks scripts | |
| - run: python scripts/check_architecture.py | |
| - run: mypy | |
| python: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ["3.9", "3.13"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: python -m pip install --upgrade pip maturin pytest numpy "tensorcircuit-ng>=1.8,<2" | |
| - run: maturin build --release --locked --out dist | |
| - name: Install built wheel | |
| run: >- | |
| python -c "import glob, subprocess, sys; wheels = glob.glob('dist/*.whl'); assert len(wheels) == 1, wheels; subprocess.check_call([sys.executable, '-m', 'pip', 'install', '--force-reinstall', '--no-deps', wheels[0]])" | |
| - run: pytest | |
| - run: python scripts/run_doctest.py | |
| examples: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - uses: dtolnay/rust-toolchain@stable | |
| - run: python -m pip install --upgrade pip maturin numpy "tensorcircuit-ng>=1.8,<2" | |
| - run: maturin build --release --locked --out dist | |
| - name: Install built wheel | |
| run: >- | |
| python -c "import glob, subprocess, sys; wheels = glob.glob('dist/*.whl'); assert len(wheels) == 1, wheels; subprocess.check_call([sys.executable, '-m', 'pip', 'install', '--force-reinstall', '--no-deps', wheels[0]])" | |
| - run: python examples/vqe_u1.py | |
| - run: python examples/vqe_propagation.py | |
| - run: python examples/vqe_spps.py | |
| - run: python examples/tensorcircuit_interop.py | |
| packaging: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - run: python -m pip install --upgrade pip maturin | |
| - run: maturin build --release --locked --out dist | |
| - run: maturin sdist --out dist |