Skip to content

Commit

Permalink
Update reduced_density_matrix.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Skuwar1 authored Nov 1, 2024
1 parent add36d1 commit f86b8f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Hamiltonians/reduced_density_matrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,13 @@ j_n> ... > j_{i+1} > j_{i} > ... > j_1 and k_n> ... > k_{i+1} > k_{i} > ... > k_
* [`SingleParticleExcitation`](@ref)
* [`TwoParticleExcitation`](@ref)
"""
struct ReducedDensityMatrix{TT} <: AbstractOperator{TT}
struct ReducedDensityMatrix{} <: AbstractOperator{Float64}
M::Int
n::Int
end
function ReducedDensityMatrix(addr::SingleComponentFockAddress; n = 1, ele_type = Float64)
function ReducedDensityMatrix(addr::SingleComponentFockAddress; n = 1)
M = num_modes(addr)
return ReducedDensityMatrix{ele_type}(M,n)
return ReducedDensityMatrix{}(M,n)
end
function Base.show(io::IO, g2::ReducedDensityMatrix)
print(io, "ReducedDensityMatrix(num_modes = $(g2.M), n=$(g2.n))")
Expand Down

0 comments on commit f86b8f2

Please sign in to comment.