Skip to content

fix: strengthen QEC sizing and distance contracts with Flux (#412) - #460

Merged
arniber21 merged 1 commit into
mainfrom
agent/issue-412
Aug 4, 2026
Merged

fix: strengthen QEC sizing and distance contracts with Flux (#412)#460
arniber21 merged 1 commit into
mainfrom
agent/issue-412

Conversation

@arniber21

Copy link
Copy Markdown
Owner

No description provided.

@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
quon Ready Ready Preview Aug 4, 2026 11:14pm

@arniber21
arniber21 marked this pull request as ready for review August 4, 2026 23:14

Copy link
Copy Markdown
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@arniber21
arniber21 merged commit 13c60e9 into main Aug 4, 2026
10 of 22 checks passed
arniber21 added a commit that referenced this pull request Aug 5, 2026
…nd tests, lit)

Restores the four quality gates that regressed after the #389#415 fix
batch (#455#460) landed without a green `just test-ci`:

- **fmt**: `cargo fmt --all` on ~30 drifted files
- **clippy**: fix `needless_borrow` in `quon_core/depth.rs`,
  `manual_div_ceil` in `mlir_bridge/phase_polynomial.rs`,
  `needless_question_mark` in `frontend/lower.rs` (x2),
  `needless_borrows_for_generic_args` in `quon_na/tests`,
  remove dead `is_captured` in `mlir_bridge/ffi.rs`
- **rustdoc**: remove intra-doc links to private items in
  `mlir_bridge/ffi.rs` (`PassContext`, `with_context`) and
  `mlir_bridge/diagnostics.rs` (`crate::ffi::emit_error`)
- **backend tests**: `all_to_all_1000_qubits_constructs_quickly`
  accessed the now-private `dist` field (sealed by #394); switched to
  the public `num_qubits()`/`dist()` accessors
- **lit**: register missing `%clifford-t-opt` substitution in
  `test/lit/lit.cfg.py` — the two Clifford+T lit tests referenced it
  but the config never defined it

All gates verified green:
  cargo fmt --all -- --check            ✅
  cargo clippy --workspace --exclude flux_verify --all-targets -- -D warnings  ✅
  RUSTDOCFLAGS='-D warnings' cargo doc --workspace --exclude flux_verify --no-deps  ✅
  cargo nextest run --workspace --exclude flux_verify  →  5106 passed, 0 failed
  npx @taskless/cli@latest check  →  No issues found

Also adds the re-review report at
`docs/reviews/idiomatic-rust-re-review-2026-08-04.md`.
arniber21 added a commit that referenced this pull request Aug 5, 2026
…nd tests, lit)

Restores the four quality gates that regressed after the #389#415 fix
batch (#455#460) landed without a green `just test-ci`:

- **fmt**: `cargo fmt --all` on ~30 drifted files
- **clippy**: fix `needless_borrow` in `quon_core/depth.rs`,
  `manual_div_ceil` in `mlir_bridge/phase_polynomial.rs`,
  `needless_question_mark` in `frontend/lower.rs` (x2),
  `needless_borrows_for_generic_args` in `quon_na/tests`,
  remove dead `is_captured` in `mlir_bridge/ffi.rs`
- **rustdoc**: remove intra-doc links to private items in
  `mlir_bridge/ffi.rs` (`PassContext`, `with_context`) and
  `mlir_bridge/diagnostics.rs` (`crate::ffi::emit_error`)
- **backend tests**: `all_to_all_1000_qubits_constructs_quickly`
  accessed the now-private `dist` field (sealed by #394); switched to
  the public `num_qubits()`/`dist()` accessors
- **lit**: register missing `%clifford-t-opt` substitution in
  `test/lit/lit.cfg.py` — the two Clifford+T lit tests referenced it
  but the config never defined it

All gates verified green:
  cargo fmt --all -- --check            ✅
  cargo clippy --workspace --exclude flux_verify --all-targets -- -D warnings  ✅
  RUSTDOCFLAGS='-D warnings' cargo doc --workspace --exclude flux_verify --no-deps  ✅
  cargo nextest run --workspace --exclude flux_verify  →  5106 passed, 0 failed
  npx @taskless/cli@latest check  →  No issues found

Also adds the re-review report at
`docs/reviews/idiomatic-rust-re-review-2026-08-04.md`.
arniber21 added a commit that referenced this pull request Aug 5, 2026
…nd tests, lit)

Restores the four quality gates that regressed after the #389#415 fix
batch (#455#460) landed without a green `just test-ci`:

- **fmt**: `cargo fmt --all` on ~30 drifted files
- **clippy**: fix `needless_borrow` in `quon_core/depth.rs`,
  `manual_div_ceil` in `mlir_bridge/phase_polynomial.rs`,
  `needless_question_mark` in `frontend/lower.rs` (x2),
  `needless_borrows_for_generic_args` in `quon_na/tests`,
  remove dead `is_captured` in `mlir_bridge/ffi.rs`
- **rustdoc**: remove intra-doc links to private items in
  `mlir_bridge/ffi.rs` (`PassContext`, `with_context`) and
  `mlir_bridge/diagnostics.rs` (`crate::ffi::emit_error`)
- **backend tests**: `all_to_all_1000_qubits_constructs_quickly`
  accessed the now-private `dist` field (sealed by #394); switched to
  the public `num_qubits()`/`dist()` accessors
- **lit**: register missing `%clifford-t-opt` substitution in
  `test/lit/lit.cfg.py` — the two Clifford+T lit tests referenced it
  but the config never defined it

All gates verified green:
  cargo fmt --all -- --check            ✅
  cargo clippy --workspace --exclude flux_verify --all-targets -- -D warnings  ✅
  RUSTDOCFLAGS='-D warnings' cargo doc --workspace --exclude flux_verify --no-deps  ✅
  cargo nextest run --workspace --exclude flux_verify  →  5106 passed, 0 failed
  npx @taskless/cli@latest check  →  No issues found

Also adds the re-review report at
`docs/reviews/idiomatic-rust-re-review-2026-08-04.md`.
arniber21 added a commit that referenced this pull request Aug 5, 2026
…nd tests, lit)

Restores the four quality gates that regressed after the #389#415 fix
batch (#455#460) landed without a green `just test-ci`:

- **fmt**: `cargo fmt --all` on ~30 drifted files
- **clippy**: fix `needless_borrow` in `quon_core/depth.rs`,
  `manual_div_ceil` in `mlir_bridge/phase_polynomial.rs`,
  `needless_question_mark` in `frontend/lower.rs` (x2),
  `needless_borrows_for_generic_args` in `quon_na/tests`,
  remove dead `is_captured` in `mlir_bridge/ffi.rs`
- **rustdoc**: remove intra-doc links to private items in
  `mlir_bridge/ffi.rs` (`PassContext`, `with_context`) and
  `mlir_bridge/diagnostics.rs` (`crate::ffi::emit_error`)
- **backend tests**: `all_to_all_1000_qubits_constructs_quickly`
  accessed the now-private `dist` field (sealed by #394); switched to
  the public `num_qubits()`/`dist()` accessors
- **lit**: register missing `%clifford-t-opt` substitution in
  `test/lit/lit.cfg.py` — the two Clifford+T lit tests referenced it
  but the config never defined it

All gates verified green:
  cargo fmt --all -- --check            ✅
  cargo clippy --workspace --exclude flux_verify --all-targets -- -D warnings  ✅
  RUSTDOCFLAGS='-D warnings' cargo doc --workspace --exclude flux_verify --no-deps  ✅
  cargo nextest run --workspace --exclude flux_verify  →  5106 passed, 0 failed
  npx @taskless/cli@latest check  →  No issues found

Also adds the re-review report at
`docs/reviews/idiomatic-rust-re-review-2026-08-04.md`.
arniber21 added a commit that referenced this pull request Aug 5, 2026
…nd tests, lit) (#461)

Restores the four quality gates that regressed after the #389#415 fix
batch (#455#460) landed without a green `just test-ci`:

- **fmt**: `cargo fmt --all` on ~30 drifted files
- **clippy**: fix `needless_borrow` in `quon_core/depth.rs`,
  `manual_div_ceil` in `mlir_bridge/phase_polynomial.rs`,
  `needless_question_mark` in `frontend/lower.rs` (x2),
  `needless_borrows_for_generic_args` in `quon_na/tests`,
  remove dead `is_captured` in `mlir_bridge/ffi.rs`
- **rustdoc**: remove intra-doc links to private items in
  `mlir_bridge/ffi.rs` (`PassContext`, `with_context`) and
  `mlir_bridge/diagnostics.rs` (`crate::ffi::emit_error`)
- **backend tests**: `all_to_all_1000_qubits_constructs_quickly`
  accessed the now-private `dist` field (sealed by #394); switched to
  the public `num_qubits()`/`dist()` accessors
- **lit**: register missing `%clifford-t-opt` substitution in
  `test/lit/lit.cfg.py` — the two Clifford+T lit tests referenced it
  but the config never defined it

All gates verified green:
  cargo fmt --all -- --check            ✅
  cargo clippy --workspace --exclude flux_verify --all-targets -- -D warnings  ✅
  RUSTDOCFLAGS='-D warnings' cargo doc --workspace --exclude flux_verify --no-deps  ✅
  cargo nextest run --workspace --exclude flux_verify  →  5106 passed, 0 failed
  npx @taskless/cli@latest check  →  No issues found

Also adds the re-review report at
`docs/reviews/idiomatic-rust-re-review-2026-08-04.md`.
@arniber21
arniber21 deleted the agent/issue-412 branch August 5, 2026 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant