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

Implement inds method for physical and virtual indices #186

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

mofeing
Copy link
Member

@mofeing mofeing commented Aug 14, 2024

With this PR, inds(tn; set=:physical) would return the physical indices annotated in the sites dict of Quantum, and inds(tn; set=:virtual) would return the virtual indices (i.e. the set difference between all the indices and the physical indices).

Copy link
Contributor

@starsfordummies starsfordummies left a comment

Choose a reason for hiding this comment

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

thank youu

@mofeing mofeing merged commit 2bdf42a into master Aug 14, 2024
6 checks passed
@mofeing mofeing deleted the feature/inds-physical-virtual branch August 14, 2024 15:04
@mofeing mofeing added this to the 0.8 milestone Aug 14, 2024
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.

Add helper functions to extract physical and virtual indices of an Ansatz
2 participants