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

Remove dot_real_cmplx function from wicks kernels. #276

Merged
merged 2 commits into from
Dec 10, 2023

Conversation

fdmalone
Copy link
Collaborator

@fdmalone fdmalone commented Dec 5, 2023

This function assumed the cholesky intermediate was real in an attempt to save some multiplications. This assumption is incorrect in general. This fortunately did not lead to incorrect results as the formula held for both real and complex input A, which explains why the unit tests passed. Removes this in favour of * for element wise multiplication. Also force more complex walkers in the tests to exercise the code path.

Fixes #275

This function assumed the cholesky intermediate was real in an attempt
to save some multiplications. This assumption is incorrect in general.
This fortunately did not lead to incorrect results as the formula held
for both real and complex input A, which explains why the unit tests
passed. Removes this in favour of * for element wise multiplication.
Also force more complex walkers in the tests to exercise the code path.
@fdmalone fdmalone requested a review from linusjoonho December 5, 2023 18:58
@fdmalone fdmalone merged commit 0a8ec41 into develop Dec 10, 2023
7 checks passed
@fdmalone fdmalone deleted the remove_dot_real_cmplx branch December 10, 2023 01:29
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.

The input of dot_real_cplx function A may not be real, could it lead to errors?
1 participant