diff --git a/benchmarks/cross-library/README.md b/benchmarks/cross-library/README.md index 4c02f6232..c49ea6143 100644 --- a/benchmarks/cross-library/README.md +++ b/benchmarks/cross-library/README.md @@ -6,7 +6,7 @@ of, on two workloads: | library | language | entry point used | |---|---|---| | **`ppvm`** (this repo) | Rust | `PauliSum>` | -| [PauliPropagation.jl][pp] | Julia | `propagate(PauliRotation(...), psum; min_abs_coeff)` | +| [PauliPropagation.jl][pp] | Julia | `propagate!(PauliRotation(...), cache; min_abs_coeff)` on a `VectorPauliSum` | | [PauliStrings.jl][ps] | Julia | `trotter_step!(O, gates; truncation, truncate_every)` | | [pauli-prop][qk] (Qiskit) | Rust-accelerated Python | `propagate_through_circuit(op, qc, max_terms, atol, frame="h")` | | [monoprop][mp] (Algorithmiq) | C++ with Python bindings | `PauliPropagator.from_circuit(circuit, op, cutoff, lower_atol)` | diff --git a/julia-benchmarks/Manifest.toml b/julia-benchmarks/Manifest.toml index 63e0085e2..83281b4a3 100644 --- a/julia-benchmarks/Manifest.toml +++ b/julia-benchmarks/Manifest.toml @@ -881,10 +881,10 @@ uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0" version = "2.8.5" [[deps.PauliPropagation]] -deps = ["AcceleratedKernels", "BitIntegers", "Bits", "JSON", "LinearAlgebra", "PlotGraphviz", "ProfileCanvas", "Random", "StatsBase", "Test", "UUIDs"] -git-tree-sha1 = "25a5e6eebc97b9680e16ab7e80dfb1969d828e24" +deps = ["AcceleratedKernels", "Bits", "JSON", "LinearAlgebra", "PlotGraphviz", "ProfileCanvas", "Random", "StatsBase", "Test", "UUIDs"] +git-tree-sha1 = "4052d508451de246865d67228aba34ca184e8c67" uuid = "293282d5-3c99-4fb6-92d0-fd3280a19750" -version = "0.8.1" +version = "0.9.0" [deps.PauliPropagation.extensions] PauliPropagationCUDA = "CUDA" diff --git a/julia-benchmarks/benches/xbench_pp.jl b/julia-benchmarks/benches/xbench_pp.jl index 1735f1ff5..6ba192e0a 100644 --- a/julia-benchmarks/benches/xbench_pp.jl +++ b/julia-benchmarks/benches/xbench_pp.jl @@ -10,7 +10,6 @@ # julia --project=@. -t1 benches/xbench_pp.jl using PauliPropagation -import PauliPropagation.Performance using Printf const MODEL = get(ENV, "MODEL", "tfim") @@ -36,23 +35,23 @@ end function trotter_step!(cache, n::Int) if MODEL == "tfim" for i in 1:n - Performance.propagate!(PauliRotation([:X], [i], THETA_SITE), cache; min_abs_coeff = ATOL) + propagate!(PauliRotation([:X], [i], THETA_SITE), cache; min_abs_coeff = ATOL) end for i in 1:(n - 1) - Performance.propagate!( + propagate!( PauliRotation([:Z, :Z], [i, i + 1], THETA_BOND), cache; min_abs_coeff = ATOL ) end else for i in 1:(n - 1) for axes in ([:X, :X], [:Y, :Y], [:Z, :Z]) - Performance.propagate!( + propagate!( PauliRotation(axes, [i, i + 1], THETA_BOND), cache; min_abs_coeff = ATOL ) end end for i in 1:n - Performance.propagate!(PauliRotation([:Z], [i], THETA_SITE), cache; min_abs_coeff = ATOL) + propagate!(PauliRotation([:Z], [i], THETA_SITE), cache; min_abs_coeff = ATOL) end end return cache