Skip to content

Commit efc624d

Browse files
authored
Merge pull request #60 from EbertPaul/expect_exact_bug
let expect() with alg=exact recognise coefficients
2 parents 10d92e4 + 8247075 commit efc624d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ uuid = "4de3b72a-362e-43dd-83ff-3f381eda9f9c"
33
license = "MIT"
44
authors = ["JoeyT1994 <jtindall@flatironinstitute.org>", "MSRudolph <manuel.rudolph@web.de>", "and contributors"]
55
description = "A Julia package for quantum simulation with tensor networks of near-arbritrary topology."
6-
version = "0.3.0"
6+
version = "0.3.1"
77

88
[deps]
99
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

src/expect.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function expect(
1818
ψOψ_tensors = norm_factors(ψ, collect(vertices(ψ)); op_strings = op_string_f)
1919
numer_seq = contraction_sequence(ψOψ_tensors; contraction_sequence_kwargs...)
2020
numer = contract(ψOψ_tensors; sequence = numer_seq)[]
21-
push!(out, numer / denom)
21+
push!(out, coeff * (numer / denom))
2222
end
2323
return out
2424
end

0 commit comments

Comments
 (0)