-
Notifications
You must be signed in to change notification settings - Fork 14
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
Confusing ITensor(::ITensorNetwork)
behavior
#98
Comments
This is coming from the following in
which I believe I added in one of my BP PRs in order to boil the message tensors and local tensors into a single
|
Yeah, we should come up with a better name for that functionality, or just use Functions that are the same name as a type (and with the same capitalization as the type) are considered to be type constructors, and as a rule/convention should return an object of that type, i.e. they should satisfy I'm not sure what |
Yeah I am not sure why I wasn't using I suppose we could call the function that returns a vector of ITensors |
You should be able to just use |
If those don't work for certain objects (like |
…in Dictionaries.jl.
The behavior of
ITensor(::ITensorNetwork)
is confusing, since it outputs aVector{ITensor}
:I would have expected it would output an
ITensor
.The text was updated successfully, but these errors were encountered: