From 4bb83f13ca511c48c0a73c15fe4d0b4c56880c99 Mon Sep 17 00:00:00 2001 From: qottmann Date: Mon, 16 Sep 2024 13:46:18 +0200 Subject: [PATCH] take tol from vspace --- pennylane/pauli/dla/lie_closure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pennylane/pauli/dla/lie_closure.py b/pennylane/pauli/dla/lie_closure.py index de982329639..cf7176df586 100644 --- a/pennylane/pauli/dla/lie_closure.py +++ b/pennylane/pauli/dla/lie_closure.py @@ -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