Skip to content

Fix #474: FocusedPauliFlow and FocusedGFlow classes#564

Open
thierry-martinez wants to merge 3 commits into
TeamGraphix:masterfrom
thierry-martinez:fix/474-focusedflow
Open

Fix #474: FocusedPauliFlow and FocusedGFlow classes#564
thierry-martinez wants to merge 3 commits into
TeamGraphix:masterfrom
thierry-martinez:fix/474-focusedflow

Conversation

@thierry-martinez

Copy link
Copy Markdown
Collaborator

This commit adds FocusedPauliFlow and FocusedGFlow classes to encapsulate operations specific to focused flows. Correction matrices produce focused flows by construction. Having dedicated classes removes the need to dynamically recheck that a flow is focused during circuit extraction.

This change removes the override of the class method CausalFlow.try_from_correction_matrix (that raised an exception), since CausalFlow is outside the FocusedPauliFlow hierarchy.

This commit adds `FocusedPauliFlow` and `FocusedGFlow` classes to
encapsulate operations specific to focused flows. Correction matrices
produce focused flows by construction. Having dedicated classes
removes the need to dynamically recheck that a flow is focused during
circuit extraction.

This change removes the override of the class method
`CausalFlow.try_from_correction_matrix` (that raised an exception),
since `CausalFlow` is outside the `FocusedPauliFlow` hierarchy.
@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.62%. Comparing base (2351197) to head (d4edf39).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #564      +/-   ##
==========================================
+ Coverage   90.58%   90.62%   +0.03%     
==========================================
  Files          49       49              
  Lines        7481     7501      +20     
==========================================
+ Hits         6777     6798      +21     
+ Misses        704      703       -1     

☔ View full report in Codecov by Harness.
📢 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