Skip to content

Commit

Permalink
flake fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilkhatri committed Nov 27, 2024
1 parent 9f5f8e6 commit aa14336
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lambeq/backend/pennylane.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = (
Expand Down

0 comments on commit aa14336

Please sign in to comment.