From d07ad4cb75a476fbfb27b1de759acfe66e987e6a Mon Sep 17 00:00:00 2001 From: Paul Ebert Date: Thu, 19 Feb 2026 16:23:56 +0100 Subject: [PATCH 1/2] let expect() with alg=exact recognise coefficients --- src/expect.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 82470751ade58d216478ac111c889637388e3d11 Mon Sep 17 00:00:00 2001 From: Paul Ebert Date: Mon, 23 Feb 2026 21:03:53 +0100 Subject: [PATCH 2/2] bumped package version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"