Skip to content

Conversation

@JoeyT1994
Copy link
Collaborator

This PR updates the itensor_identity_map function so that the eltype of the identity tensors can be specified. A default of Float64 is used if they aren't.

A default link_space=1 is also provided to the random_itensornetwork() function such that random_itensornetwork(s::IndsNetwork) now works and produces a product state network if the IndsNetwork contains quantum numbers (previously it would error due to fluxes not being correct).

@mtfishman
Copy link
Member

Looks good, thanks for the quick fix.

@mtfishman mtfishman merged commit ea0f467 into ITensor:main May 24, 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.

2 participants