-
Notifications
You must be signed in to change notification settings - Fork 62
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
DBI 3rd order GCI #1342
Conversation
for more information, see https://pre-commit.ci
…into dbi_gci_third_order
for more information, see https://pre-commit.ci
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this 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.
…into dbi_gci_third_order
for more information, see https://pre-commit.ci
@@ -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} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""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)$ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i sign needed here?
There was a problem hiding this comment.
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
for more information, see https://pre-commit.ci
…into dbi_gci_third_order
There was a problem hiding this 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>
Co-authored-by: Andrea Pasquale <andreapasquale97@gmail.com>
…into dbi_gci_third_order
@andrea-pasquale @Edoardo-Pedicillo can you merge? |
Added the third order GCI formula to the double blacket flow class. We probably need to change the name in the class :)