Skip to content

Commit

Permalink
take tol from vspace
Browse files Browse the repository at this point in the history
  • Loading branch information
Qottmann committed Sep 16, 2024
1 parent d1e3d8c commit 4bb83f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pennylane/pauli/dla/lie_closure.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def lie_closure(

for ps1, ps2 in itertools.combinations(vspace.basis, 2):
com = ps1.commutator(ps2)
com.simplify(tol=tol)
com.simplify(tol=vspace.tol)

if len(com) == 0: # skip because operators commute
continue
Expand Down

0 comments on commit 4bb83f1

Please sign in to comment.