Run the Rust test suite in CI and cover the large-register code paths

Aperta
#14 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, numpy, python, rust

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement
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-features too, so the build without the GPU feature keeps compiling.
  • cargo clippy -- -D warnings and cargo 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).
Lingua principale
Rust
Stelle
1
Fork
0
Merge medio
12m
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di kaiwave/qsengine

Tutte le issue di kaiwave/qsengine

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.