diff --git a/Project.toml b/Project.toml index ffdedc1..af933db 100644 --- a/Project.toml +++ b/Project.toml @@ -3,7 +3,7 @@ uuid = "4de3b72a-362e-43dd-83ff-3f381eda9f9c" license = "MIT" authors = ["JoeyT1994 ", "MSRudolph ", "and contributors"] description = "A Julia package for quantum simulation with tensor networks of near-arbritrary topology." -version = "0.3.0" +version = "0.3.1" [deps] Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e" diff --git a/src/expect.jl b/src/expect.jl index 5054a10..5e7ee88 100644 --- a/src/expect.jl +++ b/src/expect.jl @@ -18,7 +18,7 @@ function expect( ψOψ_tensors = norm_factors(ψ, collect(vertices(ψ)); op_strings = op_string_f) numer_seq = contraction_sequence(ψOψ_tensors; contraction_sequence_kwargs...) numer = contract(ψOψ_tensors; sequence = numer_seq)[] - push!(out, numer / denom) + push!(out, coeff * (numer / denom)) end return out end