Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
kmp5VT committed Aug 15, 2023
1 parent 17d804d commit f72cb41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/itensor/diagitensor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ diagITensor(is...) = diagITensor(indices(is...))

diagITensor(x::Number, is...) = diagITensor(NeverAlias(), x, is...)


#### from qn ITensors
#
# DiagBlockSparse ITensor constructors
Expand Down Expand Up @@ -162,4 +161,4 @@ end

function diagITensor(inds::QNIndices)
return diagITensor(Float64, QN(), inds)
end
end
2 changes: 1 addition & 1 deletion src/itensor/emptyitensor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ function emptyITensor(eltype::Type{<:Number}, flux::QN, is...)
"Trying to create an empty ITensor with flux $flux, cannot create empty ITensor with a specified flux.",
)
end
emptyITensor(flux::QN, is...) = emptyITensor(EmptyNumber, flux, is...)
emptyITensor(flux::QN, is...) = emptyITensor(EmptyNumber, flux, is...)
2 changes: 1 addition & 1 deletion src/itensor/randomitensor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ randomITensor(rng::AbstractRNG, inds::QNIndices) = randomITensor(rng, Float64, Q
randomITensor(inds::QNIndex...) = randomITensor(Random.default_rng(), inds...)

# TODO: generalize to list of Tuple, Vector, and QNIndex
randomITensor(rng::AbstractRNG, inds::QNIndex...) = randomITensor(rng, Float64, QN(), inds)
randomITensor(rng::AbstractRNG, inds::QNIndex...) = randomITensor(rng, Float64, QN(), inds)

0 comments on commit f72cb41

Please sign in to comment.