We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When trying to copy a LazyTensor, if the indices are defined as a tuple, it fails. MWE:
ba = FockBasis(2) a = destroy(ba) b = destroy(ba) ab = LazyTensor(ba⊗ba,(1,2),(a,b)) copy(ab)
Returning: ERROR: MethodError: no method matching copy(::Tuple{Int64, Int64})
If, instead, you define the LazyTensor with a vector for the indices, you don't get an error:
ab = LazyTensor(ba⊗ba,[1,2],(a,b)) copy(ab)
The text was updated successfully, but these errors were encountered:
Version: QuantumOptics v1.0.14 QuantumOpticsBase v0.4.18
Sorry, something went wrong.
Tuples do not have a copy method but they do have a deepcopy.
copy
deepcopy
deepcopy should be a fair workaround for the moment, until we fix the copy method.
No branches or pull requests
When trying to copy a LazyTensor, if the indices are defined as a tuple, it fails. MWE:
Returning: ERROR: MethodError: no method matching copy(::Tuple{Int64, Int64})
If, instead, you define the LazyTensor with a vector for the indices, you don't get an error:
The text was updated successfully, but these errors were encountered: