Skip to content

Commit

Permalink
remove optional sympy
Browse files Browse the repository at this point in the history
  • Loading branch information
TsafrirA authored Jan 29, 2024
1 parent d9f226b commit 28e91ae
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/qpy_compat/test_qpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,8 @@ def generate_schedule_blocks():
builder.acquire(1000, channels.AcquireChannel(0), channels.MemorySlot(0))
schedule_blocks.append(block)
# Raw symbolic pulse
if optionals.HAS_SYMENGINE:
import symengine as sym
else:
import sympy as sym
import symengine as sym

duration, amp, t = sym.symbols("duration amp t") # pylint: disable=invalid-name
expr = amp * sym.sin(2 * sym.pi * t / duration)
my_pulse = library.SymbolicPulse(
Expand Down

0 comments on commit 28e91ae

Please sign in to comment.