Skip to content

Added state fidelity#435

Closed
ACE07-Sev wants to merge 3 commits intoTeamGraphix:masterfrom
ACE07-Sev:state-fidelity
Closed

Added state fidelity#435
ACE07-Sev wants to merge 3 commits intoTeamGraphix:masterfrom
ACE07-Sev:state-fidelity

Conversation

@ACE07-Sev
Copy link

Before submitting, please check the following:

  • Make sure you have tests for the new code and that test passes (run nox)
  • If applicable, add a line to the [unreleased] part of CHANGELOG.md, following keep-a-changelog.
  • Format added code by ruff
    • See CONTRIBUTING.md for more details
  • Make sure the checks (github actions) pass.

Then, please fill in below:

Context (if applicable):
Calculate the state fidelity up, and check equivalency ignoring global phase differences.

Description of the change:

  • Added graphix.sim.statevec.Statevec.fidelity and graphix.sim.statevec.Statevec.isclose methods to calculate and check fidelity between two states.
  • Updated old code with uses of the above methods.
  • Solves #386.

Related issue:
#386

…tevec.Statevec.isclose` methods to calculate and check fidelity between two states.

- Updated old code with uses of the above methods.
- Solves [TeamGraphix#428](TeamGraphix#428).
@codecov
Copy link

codecov bot commented Feb 15, 2026

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #435      +/-   ##
==========================================
+ Coverage   86.72%   86.74%   +0.01%     
==========================================
  Files          44       44              
  Lines        6163     6171       +8     
==========================================
+ Hits         5345     5353       +8     
  Misses        818      818              

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

@ACE07-Sev
Copy link
Author

Fixing the failed CIs now...

@emlynsg
Copy link
Contributor

emlynsg commented Feb 16, 2026

Hello @ACE07-Sev. Thank you for your hard work. We are in the process of reviewing the PRs in order of submission, and will get back to you shortly.

@emlynsg
Copy link
Contributor

emlynsg commented Feb 17, 2026

Hi @ACE07-Sev, the maintainer team have agreed to accept another PR for this particular issue. Thank you again for your work, and best of luck on the other issues.

@emlynsg emlynsg closed this Feb 17, 2026
@ACE07-Sev ACE07-Sev deleted the state-fidelity branch February 17, 2026 16:08
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.

2 participants