Skip to content

Conversation

@thierry-martinez
Copy link
Collaborator

This commit fixes domains in the transpiler so that every pattern transpiled from a circuit has a flow. Previously, some domains were incompatible with any flow, despite the patterns being deterministic, because some measurement angles were zero, causing the measurements to ignore certain signals.

This commit also adds optimization.remove_useless_domains to remove the domains ignored by measurements with angle zero, to recover the same "optimized" patterns as before when needed.

This commit fixes domains in the transpiler so that every pattern
transpiled from a circuit has a flow.  Previously, some domains were
incompatible with any flow, despite the patterns being deterministic,
because some measurement angles were zero, causing the measurements to
ignore certain signals.

This commit also adds `optimization.remove_useless_domains` to remove
the domains ignored by measurements with angle zero, to recover the
same "optimized" patterns as before when needed.
@codecov
Copy link

codecov bot commented Nov 13, 2025

Codecov Report

❌ Patch coverage is 92.43028% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.25%. Comparing base (941eeed) to head (3e9bde0).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
graphix/pattern.py 87.64% 11 Missing ⚠️
graphix/optimization.py 96.69% 4 Missing ⚠️
graphix/pyzx.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #362      +/-   ##
==========================================
- Coverage   86.31%   86.25%   -0.07%     
==========================================
  Files          44       44              
  Lines        6122     6182      +60     
==========================================
+ Hits         5284     5332      +48     
- Misses        838      850      +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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