Skip to content
Merged
Changes from 2 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
4 changes: 2 additions & 2 deletions pennylane/labs/trotter_error/product_formulas/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ def effective_hamiltonian(
with executor(max_workers=num_workers) as ex:
partial_sum = ex.starmap(
_eval_commutator,
(
[
(commutator, coeff, fragments)
for ith_order in bch
for commutator, coeff in ith_order.items()
),
],
)

eff = _AdditiveIdentity()
Expand Down