Skip to content

Commit

Permalink
Small fix for BooleanExpression: it still should inherit from Gate
Browse files Browse the repository at this point in the history
  • Loading branch information
gadial committed Feb 2, 2025
1 parent 9d889a4 commit 4ee65b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qiskit/circuit/classicalfunction/boolean_expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
import re
from os.path import basename, isfile

from qiskit.circuit import Gate
from .boolean_expression_visitor import (
BooleanExpressionEvalVisitor,
BooleanExpressionArgsCollectorVisitor,
)


class BooleanExpression:
class BooleanExpression(Gate):
"""The Boolean Expression gate."""

def __init__(self, expression: str, name: str = None, var_order: list = None) -> None:
Expand Down

0 comments on commit 4ee65b3

Please sign in to comment.