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

Sign convention #28

Merged
merged 6 commits into from
Mar 9, 2020
Merged

Sign convention #28

merged 6 commits into from
Mar 9, 2020

Conversation

jl-wynen
Copy link
Collaborator

@jl-wynen jl-wynen commented Mar 7, 2020

Change the sign of the hopping matrix and chemical potential in the exponential discretization to match the diagonal. As discussed in #17

@evanberkowitz
Copy link
Owner

I agree that this change harmonizes the exponential and diagonal sign conventions, both for the hopping matrix and for the chemical potential.

Do these changes change anything in the "other" algorithms? I'm thinking specifically Variant 2, where Q=(two Ms) is required?

@evanberkowitz
Copy link
Owner

What I mean is: I see the signs are changed in the docs, but there aren't any signs in other code that needs to be changed?

@evanberkowitz
Copy link
Owner

I found these also:

hubbardFermiMatrixExp.hpp:256:        /// exp(-kappaTilde+muTilde) for particles.
hubbardFermiMatrixExp.hpp:258:        /// exp(kappaTilde-muTilde) for particles.
hubbardFermiMatrixExp.hpp:260:        /// exp(-sigmaKappa*kappaTilde-muTilde) for holes.
hubbardFermiMatrixExp.hpp:262:        /// exp(sigmaKappa*kappaTilde+muTilde) for holes.
hubbardFermiMatrixExp.cpp:593:        // Use version -i Phi - N_t log(det(e^{sigmaKappa*kappa+mu})) + log(det(1+hat{A}^{-1})).

I don't think the changes in this PR addressed these signs. I know they're all in documentation, but still, better to get them right. Do they need to be flipped?

@jl-wynen
Copy link
Collaborator Author

jl-wynen commented Mar 8, 2020

Good catch! Changed the signs in those places as well as the corresponding place in the TeX file.

@evanberkowitz
Copy link
Owner

Found a few more (I think):

cpp/hubbardFermiMatrixExp.hpp:69:         * \returns \f$\exp(-\tilde{\kappa} + \tilde{\mu})\f$ for particles
cpp/hubbardFermiMatrixExp.hpp:70:         *          and \f$\exp(-\sigma_{\tilde{\kappa}}\tilde{\kappa} - \tilde{\mu})\f$ for holes.

Do those need changing?

@evanberkowitz
Copy link
Owner

Those are all the signs I found by grepping around. If you also don't see others then let's declare all the signs fixed and close this nightmare chapter forever.

@jl-wynen jl-wynen merged commit 1078e90 into devel Mar 9, 2020
@jl-wynen jl-wynen deleted the sign_convention branch March 9, 2020 09:33
@evanberkowitz
Copy link
Owner

Woohoo!

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