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

[ITensors] [QN] Promote QNs when constructing ITensors or creating IndexSets #176

Open
mtfishman opened this issue Jan 16, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request qns QN related issue
Milestone

Comments

@mtfishman
Copy link
Member

Right now, an IndexSet or ITensor can be created such that the indices do not all need the same QNs, for example:

i = Index([QN(("Sz",1),("N",0))=>2,QN(("Sz",2),("N",1))=>1],"i")
j = Index([QN("Sz",1)=>2,QN("Sz",2)=>1],"j")

A = randomITensor(QN(),i,dag(j))

It may be good for efficiency to promote all of the indices such that they have the same QNs (filling the missing ones with QNs with zero values). Then, functions can assume all of the QNs exist, and operations between QNs like addition and equality are faster.

@mtfishman mtfishman added this to the 1.0 milestone Feb 12, 2020
@mtfishman mtfishman self-assigned this Mar 9, 2020
@mtfishman mtfishman added qns QN related issue enhancement New feature or request labels Mar 9, 2020
@emstoudenmire emstoudenmire removed this from the 1.0 milestone Apr 15, 2020
@mtfishman mtfishman added this to the v0.2 milestone Oct 7, 2020
@mtfishman mtfishman changed the title Promote QNs when constructing ITensors or creating IndexSets [ITensors] [QN] Promote QNs when constructing ITensors or creating IndexSets Apr 29, 2024
@mtfishman mtfishman reopened this Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request qns QN related issue
Projects
None yet
Development

No branches or pull requests

2 participants