Skip to content

Commit 85a0724

Browse files
committed
update
1 parent 2034a67 commit 85a0724

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/src/api/public.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,5 @@ read_td_file
6868
sample
6969
update_evidence!
7070
update_temperature
71+
random_matrix_product_state
7172
```

src/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ connected in a chain.
331331
- `chi` is the bond dimension of the virtual indices.
332332
- `d` is the dimension of the physical indices.
333333
"""
334-
random_matrix_product_state(n::Int, chi::Int, d::Int=2) = random_matrix_product_state(ComplexF64, n, chi, d)
335334
function random_matrix_product_state(::Type{T}, n::Int, chi::Int, d::Int=2) where T
336335
# chi ^ (n-1) * (variance^n)^2 == 1/d^n
337336
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
357356
Dict{Int, Int}(),
358357
Vector{Int}[[i] for i=1:n]
359358
)
360-
end
359+
end
360+
random_matrix_product_state(n::Int, chi::Int, d::Int=2) = random_matrix_product_state(ComplexF64, n, chi, d)

0 commit comments

Comments
 (0)