Run the Rust test suite in CI and cover the large-register code paths
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- ci-cd, performance, testing
Research direction
Start by reading .github/workflows/release.yml and CONTRIBUTING.md, then inspect the referenced tests in src/backend.rs, src/circuit.rs, src/pauli.rs, and src/engine.rs. Add a separate CI test job for Linux, Windows, and macOS that runs the requested Cargo checks, and add a Python test comparing 16–18-qubit results with a NumPy reference. Done means the CI covers the listed Rust paths and both parallel kernel branches, while GPU behavior on macOS arm64 is checked and documented.
Written by the indexing model from the issue text.
Description
What you want to do
Make sure releases are checked. .github/workflows/release.yml only runs pytest, and the Python
tests use at most 5 qubits. So CI never runs:
- the backend conformance suite (
src/backend.rs,conformance); - the test that compares fused and gate-by-gate results (
src/circuit.rs); - the Pauli unit tests (
src/pauli.rs); - the parallel branch of the CPU kernel for high target qubits,
stride >= 2^14(src/engine.rs:91); - any GPU test (runners have no usable GPU, so they are skipped).
Implementation notes
cargo test --release(debug is about 20× slower) on Linux, Windows and macOS.cargo test --no-default-featurestoo, so the build without the GPU feature keeps compiling.cargo clippy -- -D warningsandcargo fmt --check.- Add a Python test on 16–18 qubits against a NumPy reference, so both parallel kernel branches run
from Python as well. - GPU: check whether the macOS arm64 runners expose a Metal adapter to wgpu. If they do, the GPU
tests run there for free; otherwise document that GPU tests run only locally.
What it could look like
A `test` job that runs on every push and pull request, separate from the release job.
Contributing
- I would like to open a pull request for this (see CONTRIBUTING.md).
- Dominant language
- Rust
- Stars
- 1
- Forks
- 0
- Avg merge
- 12m
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from kaiwave/qsengine
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 55/100
All issues in kaiwave/qsengine
Similar issues
-
bug order-flow studies ui
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
userFRM/egui-charts#2417 ·
Maintainers usually reply within 1 day
-
In a plain-text message, Font, Font Size, Font Color and Text Highlight Color stay livePossibly taken @ragelfundionctrumnar claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
UCS-Care-Group/mailcraft#862 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
smoltcp-rs/smoltcp#1243 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day