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

Virtual distilation error mitigation main function UvA project #2658

Open
wants to merge 50 commits into
base: main
Choose a base branch
from

Conversation

Jegbrz
Copy link

@Jegbrz Jegbrz commented Feb 4, 2025

This pull request implements the main function (execute_with_vd) for the virtual distillation error mittigation scheme. The function accepts executors that return a density matrix (simulated) or a list of measurement bitstrings.

Right now only the Z observable is supported.

  • I license this contribution under the terms of the GNU GPL, version 3 and grant Unitary Fund the right to provide additional permissions as described in section 7 of the GNU GPL, version 3.

Before opening the PR, please ensure you have completed the following where appropriate.

chrispy-chicken and others added 30 commits January 9, 2025 18:35
first commit, draft of vd notebook
… circuit which shows that VD improves the expected value
…onality in the vd function. This seems to work better for single qubit benchmark circuits but worse for 2 qubit benchmark circuits
Added ESD and enhanced benchmarking
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hello @Jegbrz, thank you for submitting a PR to Mitiq! We will respond as soon as possible, and if you have any questions in the meantime, you can ask us on the Unitary Fund Discord.

Copy link

codecov bot commented Feb 4, 2025

Codecov Report

Attention: Patch coverage is 24.56140% with 86 lines in your changes missing coverage. Please review.

Project coverage is 96.79%. Comparing base (7b5f549) to head (7dabe9a).

Files with missing lines Patch % Lines
mitiq/vd/vd.py 14.70% 58 Missing ⚠️
mitiq/vd/vd_utils.py 37.77% 28 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2658      +/-   ##
==========================================
- Coverage   98.74%   96.79%   -1.96%     
==========================================
  Files          93       95       +2     
  Lines        4219     4332     +113     
==========================================
+ Hits         4166     4193      +27     
- Misses         53      139      +86     

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

@nathanshammah nathanshammah changed the title Virtual distilation error mittigation main function UvA project Virtual distilation error mitigation main function UvA project Feb 12, 2025
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.

3 participants