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

Rename_Vertices(g::NamedDimGraph, ...) does not work on an ITensorNetwork #21

Closed
JoeyT1994 opened this issue Nov 18, 2022 · 2 comments
Closed

Comments

@JoeyT1994
Copy link
Contributor

Trying to apply rename_vertices to an ITensorNetwork does not automatically work, i.e the following error is raised:

image

@leburgel
Copy link
Contributor

A map-like rename_vertices for general AbstractNamedGraphs, as suggested by Matt, was merged into NamedGraphs.jl recently (ITensor/NamedGraphs.jl#8). So I think the one in ITensorNetworks with the function as the second argument will be removed in the future.

That still doesn't solve the problem though, since an ITensorNetwork is not an AbstractNamedGraph. I think the proper thing to do is to add a rename_vertices(::AbstractDataGraph, ...) to DataGraphs.jl, which should just work for ITensorNetworks.

@mtfishman
Copy link
Member

Should be fixed now in the latest version.

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

No branches or pull requests

3 participants