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

[BUG] Fix a fermi sentence bug in bravyi_kitaev #5671

Merged
merged 3 commits into from
May 8, 2024
Merged

Conversation

soranjh
Copy link
Contributor

@soranjh soranjh commented May 8, 2024

Context:
There is a wrong call in bravyi_kitaev when the input object is FermiSentence, which is only observed for some specific inputs that were not covered by our current tests. The PR fixes the bug and adds an extra test to check the accuracy.

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:

Copy link
Contributor

github-actions bot commented May 8, 2024

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

@soranjh soranjh requested a review from Jaybsoni May 8, 2024 18:54
Copy link
Contributor

@Jaybsoni Jaybsoni left a comment

Choose a reason for hiding this comment

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

Missing changelog entry, otherwise looks good 👍🏼

Copy link
Contributor

@obliviateandsurrender obliviateandsurrender left a comment

Choose a reason for hiding this comment

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

Nice catch! Looks good to go from my end. Just one minor question.

tests/fermi/test_bravyi_kitaev.py Show resolved Hide resolved
Copy link

codecov bot commented May 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.68%. Comparing base (ab8d739) to head (ca5edf7).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5671      +/-   ##
==========================================
- Coverage   99.69%   99.68%   -0.01%     
==========================================
  Files         412      412              
  Lines       38663    38372     -291     
==========================================
- Hits        38545    38252     -293     
- Misses        118      120       +2     

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

@soranjh soranjh merged commit 6021dad into master May 8, 2024
38 checks passed
@soranjh soranjh deleted the bugfix_bravyi_kitaev branch May 8, 2024 19:52
mudit2812 pushed a commit that referenced this pull request May 8, 2024
**Context:**
There is a wrong call in bravyi_kitaev when the input object is
FermiSentence, which is only observed for some specific inputs that were
not covered by our current tests. The PR fixes the bug and adds an extra
test to check the accuracy.

**Description of the Change:**

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**
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