@@ -142,12 +142,13 @@ def test_sequence_plot():
142142
143143 plot_data = seq .export ()
144144
145- _plot_offsets = [pulse ['offset' ] for pulse in plot_data ['Rabi' ]]
145+ _plot_rabi_offsets = [pulse ['offset' ] for pulse in plot_data ['Rabi' ]]
146+ _plot_detuning_offsets = [pulse ['offset' ] for pulse in plot_data ['Detuning' ]]
146147 _plot_rabi_rotations = [pulse ['rotation' ] for pulse in plot_data ['Rabi' ]]
147148 _plot_detuning_rotations = [pulse ['rotation' ] for pulse in plot_data ['Detuning' ]]
148149
149- assert np .allclose (_plot_offsets , _offsets )
150- assert np .allclose (_plot_offsets , _offsets )
150+ assert np .allclose (_plot_rabi_offsets , _offsets )
151+ assert np .allclose (_plot_detuning_offsets , _offsets )
151152
152153 assert np .allclose (np .abs (_plot_rabi_rotations ), _rabi_rotations )
153154 assert np .allclose (np .angle (_plot_rabi_rotations ), _azimuthal_angle )
@@ -169,12 +170,13 @@ def test_sequence_plot():
169170
170171 plot_data = seq .export ()
171172
172- _plot_offsets = [pulse ['offset' ] for pulse in plot_data ['Rabi' ]]
173+ _plot_rabi_offsets = [pulse ['offset' ] for pulse in plot_data ['Rabi' ]]
174+ _plot_detuning_offsets = [pulse ['offset' ] for pulse in plot_data ['Detuning' ]]
173175 _plot_rabi_rotations = [pulse ['rotation' ] for pulse in plot_data ['Rabi' ]]
174176 _plot_detuning_rotations = [pulse ['rotation' ] for pulse in plot_data ['Detuning' ]]
175177
176- assert np .allclose (_plot_offsets , _offsets )
177- assert np .allclose (_plot_offsets , _offsets )
178+ assert np .allclose (_plot_rabi_offsets , _offsets )
179+ assert np .allclose (_plot_detuning_offsets , _offsets )
178180
179181 assert np .allclose (np .abs (_plot_rabi_rotations ), _rabi_rotations )
180182 assert np .allclose (np .angle (_plot_rabi_rotations ), _azimuthal_angle )
0 commit comments