Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
bc6da1b
Moving seepage for sq gates down
ciaranra May 7, 2025
34208ca
Rng refactor (#135)
ciaranra May 7, 2025
55cf7b5
Clean up: remove pop0_prop and simplified crosstalk funcs to just pla…
ciaranra May 7, 2025
7574e8f
Hopefully fixing PR #134 for TQ gates + allowing multiple SQ gates at…
ciaranra May 7, 2025
7d3329f
removed setters, moved scaling to builder, split seepage_prob to p1 a…
ciaranra May 8, 2025
77c5563
Switched WeightedSampler and related code to use BTreeMap. Added LLVM…
ciaranra May 9, 2025
0f1e3e4
code simplification
ciaranra May 9, 2025
52f4031
Adding qasm lang + improving CLI
ciaranra May 10, 2025
edd6923
Simplify error handling
ciaranra May 11, 2025
ee9a5b1
feat: CLI noise tests, especially to test seed determinism
ciaranra May 11, 2025
f29d17c
Split QIR capabilities to pecos-qir crate
ciaranra May 11, 2025
918ee16
moving PHIR capabilities to pecos-phir crate
ciaranra May 11, 2025
718f513
Working on more advanced PHIR support
ciaranra May 12, 2025
0e7a0e8
Getting results populated
ciaranra May 12, 2025
fdae85e
Improving tests and fixing things...
ciaranra May 12, 2025
0ebec03
Various fixes
ciaranra May 13, 2025
f646cc1
Remove legacy code from pecos-phir
ciaranra May 13, 2025
361b5bf
More qasm dev
ciaranra May 14, 2025
7c903bf
qubit id maps
ciaranra May 14, 2025
846e8dc
better barrier support
ciaranra May 14, 2025
f268478
opaque gates
ciaranra May 14, 2025
121a4fb
gate declarations
ciaranra May 14, 2025
231761b
Simplify error handling
ciaranra May 14, 2025
40ecf74
floats
ciaranra May 14, 2025
b2970ef
Funcs
ciaranra May 14, 2025
2ec8116
power func
ciaranra May 14, 2025
d77103f
clean up
ciaranra May 15, 2025
9e95b35
Includes...
ciaranra May 15, 2025
9f62c2b
simplification
ciaranra May 15, 2025
a748467
Merge branch 'feat/rusty-phir' into qasm-time
ciaranra May 15, 2025
73b96a7
simpler includes
ciaranra May 15, 2025
24654ec
simplify
ciaranra May 16, 2025
379c0dc
more tests
ciaranra May 17, 2025
c6840cf
Adding U as a native gate
ciaranra May 17, 2025
47efa68
consolidating tests
ciaranra May 17, 2025
f746158
making some docs
ciaranra May 16, 2025
a88834a
Collapsing most of nav bar by default
ciaranra May 17, 2025
4645b33
Moving docs around
ciaranra May 17, 2025
b7649fb
Renaming docs/ index.md to README.md
ciaranra May 17, 2025
6cdc820
Consolidate images
ciaranra May 17, 2025
71a796b
Added autogen Sphinx pages
ciaranra May 17, 2025
51189de
Simplifying docs
ciaranra May 17, 2025
cd8c4f5
Simplify docs 2
ciaranra May 17, 2025
13a0b65
Merge branch 'development' into qasm-time
ciaranra May 17, 2025
86a604e
cleanup
ciaranra May 17, 2025
5387a4f
Merge branch 'feat/docs' into qasm-time
ciaranra May 17, 2025
62d3d35
Make CI happy
ciaranra May 17, 2025
e486f4e
Make CI happy 2
ciaranra May 17, 2025
93fabb8
Fix workflow?
ciaranra May 17, 2025
7033306
Fix workflow? 2
ciaranra May 17, 2025
9ce58bb
Fix workflow? 3
ciaranra May 17, 2025
a291880
Make `pecos` crate doctests more stable?
ciaranra May 17, 2025
61d49fc
Make doctests more stable for Windows?
ciaranra May 17, 2025
1e711d0
Windows...
ciaranra May 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 12 additions & 3 deletions .github/workflows/rust-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,19 @@ jobs:

- name: Run tests (Linux/macOS)
if: matrix.os != 'windows-latest'
run: cargo test
run: cargo test --workspace

- name: Run tests (Windows)
if: matrix.os == 'windows-latest'
run: |
# Run all tests with our trait re-export fix
cargo test --workspace --exclude pecos-rslib
# Run all non-doctest tests
cargo test --workspace --exclude pecos-rslib --lib --bins --tests --examples

# For Windows, we need to run doctests for the pecos crate specially
# to ensure they run from the crate directory
cd crates/pecos
cargo test --doc
cd ../..

# Run doctests for other crates normally
cargo test --workspace --exclude pecos-rslib --exclude pecos --doc
70 changes: 70 additions & 0 deletions .github/workflows/test-docs-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Documentation Tests & Build

on:
push:
branches: [ master, development ]
paths:
- 'docs/**'
pull_request:
branches: [ master, development ]
paths:
- 'docs/**'
workflow_dispatch:

env:
RUSTFLAGS: -C debuginfo=0
RUST_BACKTRACE: 1
PYTHONUTF8: 1

jobs:
docs-ci:
name: Test and build documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install the latest version of uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true

- name: Set up Rust
run: rustup show

- name: Cache Rust
uses: Swatinem/rust-cache@v2
with:
workspaces: python/pecos-rslib

- name: Generate lockfile and install dependencies
run: |
uv lock --project .
uv sync --project .

- name: Install pecos-rslib with maturin
run: |
cd python/pecos-rslib
uv run maturin develop --uv

- name: Install quantum-pecos from local source
run: |
cd python/quantum-pecos
uv pip install -e .

- name: Test working documentation examples
run: |
uv run python scripts/docs/test_working_examples.py

- name: Test all code examples
run: |
uv run python scripts/docs/test_code_examples.py

- name: Build documentation
if: success()
run: |
uv run mkdocs build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ instance/

# Sphinx documentation
docs/_build/
python/docs/_build/

# PyBuilder
.pybuilder/
Expand Down
1 change: 1 addition & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ IY = "IY"
anc = "anc"
Pn = "Pn"
emiss = "emiss"
fo = "fo"
Loading
Loading