Skip to content

Commit

Permalink
test: Remove already dropped attributes from calls
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Aug 9, 2024
1 parent 0e91a0a commit 63e094f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
10 changes: 0 additions & 10 deletions tests/pulses/test_envelope.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def test_sampling_rate(shape):
pulse = Pulse(
duration=40,
amplitude=0.9,
frequency=int(100e6),
envelope=shape,
relative_phase=0,
)
Expand All @@ -38,7 +37,6 @@ def test_drag_shape():
pulse = Pulse(
duration=2,
amplitude=1,
frequency=int(4e9),
envelope=Drag(rel_sigma=0.5, beta=1),
relative_phase=0,
)
Expand Down Expand Up @@ -75,11 +73,8 @@ def test_rectangular():
pulse = Pulse(
duration=50,
amplitude=1,
frequency=200_000_000,
relative_phase=0,
envelope=Rectangular(),
channel="1",
qubit=0,
)

assert pulse.duration == 50
Expand All @@ -100,11 +95,8 @@ def test_gaussian():
pulse = Pulse(
duration=50,
amplitude=1,
frequency=200_000_000,
relative_phase=0,
envelope=Gaussian(rel_sigma=5),
channel="1",
qubit=0,
)

assert pulse.duration == 50
Expand All @@ -130,10 +122,8 @@ def test_drag():
pulse = Pulse(
duration=50,
amplitude=1,
frequency=200_000_000,
relative_phase=0,
envelope=Drag(rel_sigma=0.2, beta=0.2),
qubit=0,
)

assert pulse.duration == 50
Expand Down
24 changes: 0 additions & 24 deletions tests/test_instruments_zhinst.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,58 +28,40 @@
Pulse(
duration=40,
amplitude=0.05,
frequency=int(3e9),
relative_phase=0.0,
envelope=Rectangular(),
channel="ch0",
qubit=0,
),
Pulse(
duration=40,
amplitude=0.05,
frequency=int(3e9),
relative_phase=0.0,
envelope=Gaussian(rel_sigma=5),
channel="ch0",
qubit=0,
),
Pulse(
duration=40,
amplitude=0.05,
frequency=int(3e9),
relative_phase=0.0,
envelope=Gaussian(rel_sigma=5),
channel="ch0",
qubit=0,
),
Pulse(
duration=40,
amplitude=0.05,
frequency=int(3e9),
relative_phase=0.0,
envelope=Drag(rel_sigma=5, beta=0.4),
channel="ch0",
qubit=0,
),
Pulse(
duration=40,
amplitude=0.05,
frequency=int(3e9),
relative_phase=0.0,
envelope=Snz(t_idling=10, b_amplitude=0.01),
channel="ch0",
qubit=0,
),
Pulse(
duration=40,
amplitude=0.05,
frequency=int(3e9),
relative_phase=0.0,
envelope=Iir(
a=np.array([10, 1]), b=np.array([0.4, 1]), target=Gaussian(rel_sigma=5)
),
channel="ch0",
qubit=0,
),
],
)
Expand All @@ -100,13 +82,11 @@ def test_classify_sweepers(dummy_qrc):
duration=40,
amplitude=0.05,
envelope=Gaussian(rel_sigma=5),
type=PulseType.DRIVE,
)
pulse_2 = Pulse(
duration=40,
amplitude=0.05,
envelope=Rectangular(),
type=PulseType.READOUT,
)
amplitude_sweeper = Sweeper(Parameter.amplitude, np.array([1, 2, 3]), [pulse_1])
readout_amplitude_sweeper = Sweeper(
Expand All @@ -133,13 +113,11 @@ def test_processed_sweeps_pulse_properties(dummy_qrc):
duration=40,
amplitude=0.05,
envelope=Gaussian(rel_sigma=5),
type=PulseType.DRIVE,
)
pulse_2 = Pulse(
duration=40,
amplitude=0.05,
envelope=Gaussian(rel_sigma=5),
type=PulseType.DRIVE,
)
sweeper_amplitude = Sweeper(
Parameter.amplitude, np.array([1, 2, 3]), [pulse_1, pulse_2]
Expand Down Expand Up @@ -323,7 +301,6 @@ def test_experiment_flow_coupler(dummy_qrc):
duration=500,
amplitude=1,
envelope=Rectangular(),
type=PulseType.COUPLERFLUX,
)
)

Expand Down Expand Up @@ -455,7 +432,6 @@ def test_experiment_sweep_single_coupler(dummy_qrc, parameter1):
duration=500,
amplitude=1,
envelope=Rectangular(),
type=PulseType.COUPLERFLUX,
)
)

Expand Down

0 comments on commit 63e094f

Please sign in to comment.