Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion benchmarks/cross-library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ of, on two workloads:
| library | language | entry point used |
|---|---|---|
| **`ppvm`** (this repo) | Rust | `PauliSum<config::fxhash::Byte<N, f64, CoefficientThreshold>>` |
| [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)` |
Expand Down
6 changes: 3 additions & 3 deletions julia-benchmarks/Manifest.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions julia-benchmarks/benches/xbench_pp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
# julia --project=@. -t1 benches/xbench_pp.jl

using PauliPropagation
import PauliPropagation.Performance
using Printf

const MODEL = get(ENV, "MODEL", "tfim")
Expand All @@ -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
Expand Down
Loading