oqc-community / qat

QAT is a quantum compiler and runtime focused on low-level, just-above-driver integration.
Other
49 stars 11 forks source link

Resolve np.tanh warnings from soft square waveforms #237

Closed lcauser-oqc closed 3 weeks ago

lcauser-oqc commented 1 month ago

Fix the overflow errors thrown by np.tanh(x) warnings in various waveforms. The error is thrown (on windows) when the argument x is complex with a sufficiently large real component. However, the waveforms are only evaluated against time (a real number), so treating x as complex is unnecessary.

Changes: