Skip to content

Commit

Permalink
fix non-constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
nkanazawa1989 committed Apr 12, 2022
1 parent f2ef950 commit 2ea6390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/pulse/library/symbolic_pulses.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def __new__(cls, *args, **kwargs):
# Lambdify the constraints
if not cls._define_constraints():
# No constraint is provided. Just an empty list.
cls.constraints = sym.true
cls.constraints = []
else:
params = [sym.Symbol(p) for p in ["limit"] + cls.PARAM_DEF]
constraints = []
Expand Down

0 comments on commit 2ea6390

Please sign in to comment.