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

オープン
#14 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, numpy, python, rust

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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).
主要言語
Rust
スター
1
フォーク
0
平均マージ
12分
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

kaiwave/qsengine のほかの issue

kaiwave/qsengine の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。