Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
to24toro committed Feb 22, 2024
1 parent 967147f commit 3d00d76
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/dynamics/pulse/test_pulse_to_signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ def setUp(self):
self.constant_get_waveform_samples = (
pulse.Constant(duration=5, amp=0.1).get_waveform().samples
)
self.gaussian_get_waveform_samples = (
pulse.Gaussian(duration=5, amp=0.983, sigma=2.0).get_waveform().samples
)
self._dt = 0.222

def test_InstructionToSignals_with_JAX(self):
Expand Down Expand Up @@ -414,7 +417,7 @@ def jit_func_gaussian_to_signals(amp):

jit(jit_func_gaussian_to_signals)(0.983)
self.jit_grad(jit_func_gaussian_to_signals)(0.983)
jit_samples = jit(jit_func_gaussian_to_signals)(0.983)
jit_gaussian_samples = jit(jit_func_gaussian_to_signals)(0.983)
self.assertAllClose(
jit_gaussian_samples, self.gaussian_get_waveform_samples, atol=1e-7, rtol=1e-7
)
Expand Down

0 comments on commit 3d00d76

Please sign in to comment.