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

Revert "Bugfix: ensure full dealiasing of lattices in attach" #320

Closed
wants to merge 1 commit into from

Conversation

pablosanjose
Copy link
Owner

Reverts #319

The fix here was wrong. It made copy_lattice(ph::ParametricHamiltonian) copy the lattices of the parent and the embedded Hamiltonian, instead of only the parent one. In fact, the right fix is to copy only the embedded Hamiltonian because transform and translate modify lattice(ph) only, not the parent one, which must remain untouched. As a result the two lattices need not coincide in general.

@pablosanjose
Copy link
Owner Author

Superseded by #321

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.

1 participant