Repository navigation
Marginalize two-qubit pauli error on lost partners - #284
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
A normalized channel can panic in debug builds after partner loss or leakage because floating-point rounding pushes a derived marginal above 1, violating a strict assertion.
1 open issue
What changed in this PR
This PR makes two-qubit Pauli noise apply the marginal channel to a surviving qubit when its partner is lost, updating the tableau and Pauli-sum backends.
Changes:
- Apply marginal Pauli and depolarizing noise to survivors, including leaked partners in the tableau backend.
- Add regression tests for survivor behavior and loss-aware coefficient scaling.
- Update comparison tests to document TableauSum’s unchanged no-op behavior.
| File | Description |
|---|---|
crates/ppvm-tableau/src/tableau_like.rs |
Compute and apply survivor marginals; update channel documentation. |
crates/ppvm-tableau/src/noise.rs |
Test lost and leaked partners and survivor flip rates. |
crates/ppvm-tableau-sum/tests/sampler_vs_pure.rs |
Adjust expectations for differing backend loss behavior. |
crates/ppvm-pauli-sum/tests/loss.rs |
Test marginal coefficient scaling and both-lost cases. |
crates/ppvm-pauli-sum/src/sum/noise.rs |
Treat lost slots as identity when scaling survivor terms. |
Review effort: Balanced
Contributor
|
Summed marginals of a normalized two-qubit channel can round to 1 + eps, tripping the debug probability check on a lost/leaked partner. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
david-pl
enabled auto-merge (squash)
November 6, 2026 12:55
Merged
david-pl
pushed a commit
that referenced
this pull request
Nov 6, 2026
## 🤖 New release * `ppvm-traits`: 0.2.0 -> 0.2.1 * `ppvm-pauli-word`: 0.2.0 -> 0.2.1 * `ppvm-pauli-sum`: 0.2.0 -> 0.2.1 (✓ API compatible changes) * `ppvm-sym`: 0.2.0 -> 0.2.1 * `ppvm-tableau`: 0.2.0 -> 0.2.1 (✓ API compatible changes) * `stim-parser`: 0.2.0 -> 0.2.1 * `ppvm-stim`: 0.2.0 -> 0.2.1 * `ppvm-tableau-sum`: 0.2.0 -> 0.2.1 (✓ API compatible changes) * `vihaco-circuit-isa`: 0.2.0 -> 0.2.1 * `ppvm-vihaco`: 0.2.0 -> 0.2.1 * `ppvm-tui`: 0.2.0 -> 0.2.1 * `ppvm-cli`: 0.2.0 -> 0.2.1 <details><summary><i><b>Changelog</b></i></summary><p> ## `ppvm-cli` <blockquote> ## [0.2.1](v0.2.0...v0.2.1) - 2026-11-06 ### Other - Marginalize two-qubit pauli error on lost partners ([#284](#284)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.