Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Frontend] Add frontend for ZNE #414

Merged
merged 20 commits into from
Jan 5, 2024
Merged

[Frontend] Add frontend for ZNE #414

merged 20 commits into from
Jan 5, 2024

Conversation

rmoyard
Copy link
Contributor

@rmoyard rmoyard commented Dec 29, 2023

Context:
Following the support of jax.numpy.polyfit, and the MLIR operation ZneOp which applies global folding, we are now able to implement the frontend catalyst.mitigate_with_zne.

Description of the Change:

  • Add catalyst.mitigate_with_zne in the Jax frontend
  • Add support for multiple measurements in MLIR

Benefits:

  • We can apply error mitigation on circuits with control flow.
  • We can compile mitigated circuits.

@rmoyard rmoyard changed the title [draft][Frontedn] Add frontend for ZNE [draft][Frontend] Add frontend for ZNE Dec 29, 2023
Copy link

codecov bot commented Dec 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5b05da9) 99.56% compared to head (f253759) 99.56%.

❗ Current head f253759 differs from pull request most recent head 43f5036. Consider uploading reports for the commit 43f5036 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #414   +/-   ##
=======================================
  Coverage   99.56%   99.56%           
=======================================
  Files          43       43           
  Lines        7597     7644   +47     
  Branches      503      512    +9     
=======================================
+ Hits         7564     7611   +47     
  Misses         17       17           
  Partials       16       16           

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

@rmoyard
Copy link
Contributor Author

rmoyard commented Jan 2, 2024

[sc-52676]

@josh146 josh146 mentioned this pull request Jan 4, 2024
@rmoyard rmoyard changed the title [draft][Frontend] Add frontend for ZNE [Frontend] Add frontend for ZNE Jan 4, 2024
@rmoyard rmoyard marked this pull request as ready for review January 4, 2024 14:07
mlir/lib/Mitigation/Transforms/MitigationMethods/Zne.cpp Outdated Show resolved Hide resolved
frontend/catalyst/pennylane_extensions.py Outdated Show resolved Hide resolved
frontend/test/pytest/test_mitigation.py Show resolved Hide resolved
frontend/catalyst/pennylane_extensions.py Outdated Show resolved Hide resolved
@rmoyard rmoyard merged commit 34b57b0 into main Jan 5, 2024
19 checks passed
@rmoyard rmoyard deleted the zne_frontend branch January 5, 2024 14:35
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.

4 participants