diff --git a/docs/src/api/public.md b/docs/src/api/public.md index 7c51d51..5616b95 100644 --- a/docs/src/api/public.md +++ b/docs/src/api/public.md @@ -68,4 +68,5 @@ read_td_file sample update_evidence! update_temperature +random_matrix_product_state ``` diff --git a/src/utils.jl b/src/utils.jl index 684515a..48072b0 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -331,7 +331,6 @@ connected in a chain. - `chi` is the bond dimension of the virtual indices. - `d` is the dimension of the physical indices. """ -random_matrix_product_state(n::Int, chi::Int, d::Int=2) = random_matrix_product_state(ComplexF64, n, chi, d) function random_matrix_product_state(::Type{T}, n::Int, chi::Int, d::Int=2) where T # chi ^ (n-1) * (variance^n)^2 == 1/d^n variance = d^(-1/2) * chi^(-1/2+1/2n) @@ -357,4 +356,5 @@ function random_matrix_product_state(::Type{T}, n::Int, chi::Int, d::Int=2) wher Dict{Int, Int}(), Vector{Int}[[i] for i=1:n] ) -end \ No newline at end of file +end +random_matrix_product_state(n::Int, chi::Int, d::Int=2) = random_matrix_product_state(ComplexF64, n, chi, d)