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

Fix correlation_matrix issue 105 and test #106

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

emstoudenmire
Copy link
Contributor

Fix typo in mps.jl, line 899, pointed out by dhqian in issue #105. Add a line to test_mps.jl that triggers this issue if not fixed.

@@ -962,6 +962,9 @@ end
@test inner(psi', MPO(a, s), psi) ≈ Cpm[i - ss + 1, j - ss + 1]
end

# Test sites argument (also regression test for issue #105)
Cxz = correlation_matrix(psi, "X", "Z"; sites=2:2:6)
Copy link
Member

Choose a reason for hiding this comment

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

Can you check the result using test_correlation_matrix? It might not handle the sites keyword argument properly right now but that should be easy to fix.

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