Skip to content

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