From aa143368921efefcf66a40cd828c9383cb9c2fd4 Mon Sep 17 00:00:00 2001 From: nikhilkhatri Date: Wed, 27 Nov 2024 15:43:30 +0000 Subject: [PATCH] flake fixes --- lambeq/backend/pennylane.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lambeq/backend/pennylane.py b/lambeq/backend/pennylane.py index 0ec36d7a..349bcaca 100644 --- a/lambeq/backend/pennylane.py +++ b/lambeq/backend/pennylane.py @@ -49,7 +49,7 @@ import sympy import torch -from lambeq.backend.quantum import Scalar, Measure +from lambeq.backend.quantum import Measure, Scalar if TYPE_CHECKING: from lambeq.backend.quantum import Diagram @@ -218,8 +218,8 @@ def to_pennylane(lambeq_circuit: Diagram, probabilities=False, """ if any(isinstance(box, Measure) for box in lambeq_circuit.boxes): - raise ValueError("Only pure circuits, or circuits with discards" - " are currently supported.") + raise ValueError('Only pure circuits, or circuits with discards' + ' are currently supported.') tk_circ = lambeq_circuit.to_tk() op_list, params_list, wires_list, symbols_set = (