ITensor / NDTensors.jl

A Julia package for n-dimensional sparse tensors.
Apache License 2.0
27 stars 7 forks source link

Allow specifying the element type in `random_unitary`/`random_orthog` #70

Closed mtfishman closed 3 years ago

mtfishman commented 3 years ago

Allow specifying the element type in random_unitary, such as random_unitary(ComplexF64, 4, 4) or random_unitary(Float64, 4, 4). Then, random_orthog(m, n) could be defined as random_unitary(Float64, m, n). Allows for more generic code (for example see the usage in randomCircuitMPS).