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

Refactor code for some ansatzes #86

Merged
merged 18 commits into from
Apr 4, 2024
Merged

Refactor code for some ansatzes #86

merged 18 commits into from
Apr 4, 2024

Conversation

chmwzc
Copy link
Contributor

@chmwzc chmwzc commented Feb 29, 2024

Basically, rewriting and cleaning up some older code

Notes:

  • Converting the function to build the hardware-efficient ansatz to return a circuit to make it consistent with the functions for the other ansatzes
    • Updated the associated tests and documentation as well

Copy link

codecov bot commented Feb 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (2e60ecc) to head (c4a5564).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #86   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           12        12           
  Lines          586       589    +3     
=========================================
+ Hits           586       589    +3     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

"Hardware-efficient circuit" vs. "Hardware-efficient ansatz circuit"; the "ansatz" abbreviation isn't being used in the functions for the other ansatzes as well
Instead of a openfermion.QubitOperator currently, should be more useful
@chmwzc
Copy link
Contributor Author

chmwzc commented Mar 1, 2024

Should be done, now waiting for #85 to be merged in case of any possible conflicts.

@chmwzc chmwzc added this to the Qibochem 0.0.3 milestone Mar 1, 2024
@chmwzc chmwzc marked this pull request as ready for review March 21, 2024 02:06
@chmwzc chmwzc marked this pull request as draft March 25, 2024 06:47
@chmwzc chmwzc marked this pull request as ready for review April 3, 2024 03:43
@damarkian damarkian merged commit eb83547 into main Apr 4, 2024
7 checks passed
@damarkian damarkian deleted the refactor-ansatzes branch April 4, 2024 07:26
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