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 missing return statement in QNVal constructor #431

Merged
merged 1 commit into from
Jun 17, 2020

Conversation

emstoudenmire
Copy link
Collaborator

A user was reporting a surprising issue with a code that did a replaceinds! on a QNITensor. Even though replaceinds! is smart enough to handle arrows automatically, there was an error. The issue stemmed from a mod-3 QN which was having negative values which shouldn't happen by design. The error was that the QNVal constructor should have had a return keyword on a certain line which was missing and causing silent errors in some cases. Fixes #430

@emstoudenmire emstoudenmire merged commit bcecd90 into ITensor:master Jun 17, 2020
@emstoudenmire emstoudenmire deleted the issue_430_z3qn branch June 17, 2020 21:25
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.

Bug with mod 3 QNs
1 participant