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

[ITensors] [BUG] tr(::ITensor) doesn't preserve element type #1444

Closed
mtfishman opened this issue May 15, 2024 · 1 comment
Closed

[ITensors] [BUG] tr(::ITensor) doesn't preserve element type #1444

mtfishman opened this issue May 15, 2024 · 1 comment
Assignees
Labels
bug Something isn't working ITensors Issues or pull requests related to the `ITensors` package.

Comments

@mtfishman
Copy link
Member

mtfishman commented May 15, 2024

julia> using ITensors: Index, randomITensor

julia> using LinearAlgebra: tr

julia> i = Index(2)
(dim=2|id=121)

julia> tr(randomITensor(Float32, i', i))
-0.2802596092224121

julia> using Pkg: Pkg

julia> Pkg.status("ITensors")
Status `.../Project.toml`
  [9136182c] ITensors v0.6.4
@mtfishman mtfishman added bug Something isn't working ITensors Issues or pull requests related to the `ITensors` package. labels May 15, 2024
@mtfishman
Copy link
Member Author

Closed by #1448.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ITensors Issues or pull requests related to the `ITensors` package.
Projects
None yet
Development

No branches or pull requests

2 participants