Sitelet https://github.com/TeamGraphix/graphix/pull/607
Skip to content

Fix #493: New base class Simulable - #607

Open
thierry-martinez wants to merge 16 commits into
TeamGraphix:masterfrom
thierry-martinez:fix/493-simulation-api
Open

thierry-martinez wants to merge 16 commits into
TeamGraphix:masterfrom
thierry-martinez:fix/493-simulation-api

Conversation

@thierry-martinez

Copy link
Copy Markdown
Collaborator

The new base class Simulable is implemented by Pattern, StandardizedPattern, OpenGraph, PauliFlow, and XZCorrections. The simulate method runs the simulation on a pattern derived from the object, applying usual optimization passes by default. Optimizations can be disabled by passing optimized=False.

The new base class `Simulable` is implemented by `Pattern`,
`StandardizedPattern`, `OpenGraph`, `PauliFlow`, and `XZCorrections`.
The `simulate` method runs the simulation on a pattern derived from
the object, applying usual optimization passes by default.
Optimizations can be disabled by passing `optimized=False`.
@codecov

codecov Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.07%. Comparing base (5e9c93f) to head (cf898ec).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #607      +/-   ##
==========================================
+ Coverage   89.98%   90.07%   +0.09%     
==========================================
  Files          49       49              
  Lines        8235     8284      +49     
==========================================
+ Hits         7410     7462      +52     
+ Misses        825      822       -3     

☔ 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.

@matulni matulni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great addition, thank you!

Comment thread graphix/flow/core.py Outdated
Comment thread graphix/pattern.py Outdated
Comment thread graphix/simulator.py Outdated
Comment thread graphix/simulator.py Outdated
Comment thread graphix/optimization.py Outdated
Comment thread graphix/transpiler.py Outdated
Comment thread noxfile.py Outdated
thierry-martinez and others added 7 commits September 29, 2026 22:31
Co-authored-by: Mateo Uldemolins <m.uldemolins@gmail.com>
Co-authored-by: Mateo Uldemolins <m.uldemolins@gmail.com>
Co-authored-by: Mateo Uldemolins <m.uldemolins@gmail.com>
Co-authored-by: Mateo Uldemolins <m.uldemolins@gmail.com>
Co-authored-by: Mateo Uldemolins <m.uldemolins@gmail.com>

@matulni matulni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

This branch has not been deployed

No deployments
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.

API for pattern optimisations including pre-simulation should be streamlined.

2 participants