Skip to content

Improve the BilinearForm Constructor #234

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

Merged
merged 21 commits into from
Apr 28, 2025
Merged

Conversation

JoeyT1994
Copy link
Contributor

@JoeyT1994 JoeyT1994 commented Apr 25, 2025

This PR improves the BilinearFormNetwork and QuadraticFormNetwork constructors in the case an operator isn't explicitly passed and therefore the "identity" operator is assumed.
The constructor can now handle vertices with multiple (or no) site indices per vertex, whereas previously it could only handle strictly one site index per vertex. Tests are added.

Additionally:

  1. An error in the VidalITensorNetwork constructor is fixed, where the cache was being updated even when update_cache= false is passed.
  2. The EinExprs.jl HyPar tests are disabled due to the fact they no longer work.
  3. The contraction_tree_to_graph.jl code and tests has been removed as it is not being used anywhere in the library and I cannot envision any future use for it right now.

@emstoudenmire @anmello this is the bug we discussed yesterday

@emstoudenmire
Copy link
Contributor

Great to see this – very quick work. Hopefully it will mean that Antonio can try the purification now.

@mtfishman mtfishman merged commit 82f5652 into ITensor:main Apr 28, 2025
10 of 11 checks passed
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.

3 participants