Skip to content

Commit

Permalink
Small fix for a recent Demo (#1285)
Browse files Browse the repository at this point in the history
CC @justinpickering , as discussed

---------

Co-authored-by: qottmann <korbinian.kottmann@gmail.com>
  • Loading branch information
ikurecic and Qottmann authored Dec 20, 2024
1 parent 71be3c7 commit 2a6f675
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
],
"dateOfPublication": "2024-12-19T00:00:00+00:00",
"dateOfLastModification": "2024-12-19T00:00:00+00:00",
"dateOfLastModification": "2024-12-20T00:00:00+00:00",
"categories": [
"Quantum Computing",
"Algorithms"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@
# It essentially counts whether the number of non-identity Pauli operators in the Pauli word is even or odd.

def even_odd_involution(op):
"""Generalization of EvenOdd to sums of Paulis"""
[pw] = op.pauli_rep
return len(pw) % 2

Expand Down Expand Up @@ -433,7 +432,7 @@ def trace_distance(A, B):
# Time evolutions
# ---------------
#
# We compute multiple time evolutions for different times and compare SuzukiTrotter products with the KAK decomposition circuit.
# We compute multiple time evolutions for different times and compare SuzukiTrotter products with the KAK decomposition circuit.
#

ts = jnp.linspace(1., 5., 10)
Expand Down Expand Up @@ -468,7 +467,7 @@ def compute_res(Us):


##############################################################################
# We see the expected behavior of SuzukiTrotter product formulas getting worse with an increase in time
# We see the expected behavior of SuzukiTrotter product formulas getting worse with an increase in time
# while the KAK error is constant zero.
#
# The KAK decomposition is particularly well-suited for smaller systems as the circuit depth is equal to the
Expand Down

0 comments on commit 2a6f675

Please sign in to comment.