Open
Conversation
Demonstrate measurement-induced entanglement via a 3-node star graph that implements the Kraus branch K_s = (I + (-1)^s Z0 Z1) / 2. The ancilla X-measurement produces Bell states from |++> input, showing genuinely non-unitary MBQC operations with the existing statevector simulator. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #182 +/- ##
==========================================
+ Coverage 84.54% 84.60% +0.06%
==========================================
Files 24 24
Lines 3203 3203
Branches 550 550
==========================================
+ Hits 2708 2710 +2
+ Misses 362 361 -1
+ Partials 133 132 -1 🚀 New features to boost your workflow:
|
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.
Summary
examples/nonunitary_parity_projection.py: a 3-node star graph demonstrating the Kraus branchGraphState.from_graph()+qompile()+PatternSimulator(StateVector), with graph visualizationTest plan
python examples/nonunitary_parity_projection.pyruns without error and produces correct overlap outputspytestpasses (no regressions)ruff check/ruff format --checkpassmake htmlindocs/builds without warnings🤖 Generated with Claude Code