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

DBI 3rd order GCI #1342

Merged
merged 21 commits into from
Jun 10, 2024
Merged

DBI 3rd order GCI #1342

merged 21 commits into from
Jun 10, 2024

Conversation

wrightjandrew
Copy link
Contributor

@wrightjandrew wrightjandrew commented Jun 4, 2024

Added the third order GCI formula to the double blacket flow class. We probably need to change the name in the class :)

image

@wrightjandrew wrightjandrew changed the title added third order gci DBI 3rd order GCI Jun 4, 2024
Copy link

codecov bot commented Jun 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.84%. Comparing base (a92347f) to head (89c2e29).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1342   +/-   ##
=======================================
  Coverage   99.84%   99.84%           
=======================================
  Files          74       74           
  Lines       10747    10753    +6     
=======================================
+ Hits        10730    10736    +6     
  Misses         17       17           
Flag Coverage Δ
unittests 99.84% <100.00%> (+<0.01%) ⬆️

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.

Copy link
Contributor

@marekgluza marekgluza left a comment

Choose a reason for hiding this comment

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

Hi @wrightjandrew great, thanks so much! Can you please brush over the suggested doc string?

Please copy paste the final one into the PR main message around your plot.

@marekgluza marekgluza removed the request for review from Sam-XiaoyueLi June 7, 2024 08:20
@@ -23,7 +23,12 @@ class DoubleBracketGeneratorType(Enum):
"""Use single commutator."""
group_commutator = auto()
"""Use group commutator approximation"""
# TODO: add double commutator (does it converge?)
group_commutator_3 = auto()
"""Implements: $e^{\frac{\\sqrt{5}-1}{2}sH}e^{\frac{\\sqrt{5}-1}{2}sD}e^{-sH}e^{sD}e^{\frac{3-\\sqrt{5}}{2}sH}e^{sD}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"""Implements: $e^{\frac{\\sqrt{5}-1}{2}sH}e^{\frac{\\sqrt{5}-1}{2}sD}e^{-sH}e^{sD}e^{\frac{3-\\sqrt{5}}{2}sH}e^{sD}
"""Implements: $e^{\frac{\\sqrt{5}-1}{2}isH}e^{\frac{\\sqrt{5}-1}{2}isD}e^{-sH}e^{isD}e^{\frac{3-\\sqrt{5}}{2}isH}e^{isD}

# TODO: add double commutator (does it converge?)
group_commutator_3 = auto()
"""Implements: $e^{\frac{\\sqrt{5}-1}{2}sH}e^{\frac{\\sqrt{5}-1}{2}sD}e^{-sH}e^{sD}e^{\frac{3-\\sqrt{5}}{2}sH}e^{sD}
\approx e^{s^2[H,D]} + O(s^4)$
Copy link
Contributor

Choose a reason for hiding this comment

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

i sign needed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think just a minus sign

@wrightjandrew wrightjandrew requested a review from marekgluza June 7, 2024 09:05
Copy link
Contributor

@andrea-pasquale andrea-pasquale left a comment

Choose a reason for hiding this comment

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

Thanks @wrightjandrew, just a small correction :)

Co-authored-by: Andrea Pasquale <andreapasquale97@gmail.com>
@marekgluza
Copy link
Contributor

@andrea-pasquale @Edoardo-Pedicillo can you merge?

@andrea-pasquale andrea-pasquale added this pull request to the merge queue Jun 10, 2024
Merged via the queue into master with commit 8dd1d33 Jun 10, 2024
27 checks passed
@scarrazza scarrazza deleted the dbi_gci_third_order branch June 25, 2024 09:55
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.

Higher order product formulas for double bracket rotations in the dbi model
4 participants