Skip to content

Commit 5b10c11

Browse files
lkdvosJutho
andauthored
Update benchmark/TensorKitBenchmarks/utils/BenchUtils.jl
Co-authored-by: Jutho <Jutho@users.noreply.github.com>
1 parent b01661f commit 5b10c11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

benchmark/TensorKitBenchmarks/utils/BenchUtils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function generate_space(::Type{U1Irrep}, D::Int, sigma::Real=0.5)
5555
return U1Space((s => d for (s, d) in zip(sectors, dims))...)
5656
end
5757
function generate_space(::Type{SU2Irrep}, D::Int, sigma::Real=0.5)
58-
poisson_pdf(x) = ceil(Int, D * exp(-sigma) * sigma^x / factorial(x))
58+
poisson_pdf(x) = ceil(Int, D * exp(-sigma) * sigma^x / factorial(x+1))
5959

6060
sectors = SU2Irrep[]
6161
dims = Int[]

0 commit comments

Comments
 (0)