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

Gauge walks #211

Merged
merged 8 commits into from
Nov 29, 2024
Merged

Gauge walks #211

merged 8 commits into from
Nov 29, 2024

Conversation

JoeyT1994
Copy link
Contributor

This PR generalizes the tree_orthogonalize code to tree_gauge code which is based around a generic algorithm which walks through a series of edges of the ITensorNetwork and performs some factorization which can be specified with an alg::Algorithm argument.

This means that we can support other gauges such as interpolative with very minimal additional code (just one function which tells you how to do the edge factorizations).

@emstoudenmire
Copy link
Contributor

Looks like a nice improvement. @JoeyT1994 will you be updating the ITensorTCI.jl PR to use a similar gauge_walk / gauge_edge / Algorithm design?

@JoeyT1994
Copy link
Contributor Author

Yes, the idea will be that I can then simplify that PR by removing most functions from the interpolative_gauge.jl file other than the function that tells you how to do the interpolative_decomposition on an edge of a tensor network.

@@ -44,7 +45,7 @@ using MacroTools: @capture
using NamedGraphs: NamedGraphs, NamedGraph, not_implemented, steiner_tree
using NamedGraphs.GraphsExtensions:
⊔, directed_graph, incident_edges, rename_vertices, vertextype
using NDTensors: NDTensors, dim
using NDTensors: NDTensors, dim, Algorithm
Copy link
Member

Choose a reason for hiding this comment

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

Let's load Algorithm from ITensor instead, since that is where you are loading @Algorithm_str.

@mtfishman
Copy link
Member

Looks great, thanks! This will be very nice to have.

@mtfishman mtfishman merged commit ff25d59 into ITensor:main Nov 29, 2024
5 of 6 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