Skip to content

Commit b84dac1

Browse files
committed
Adapted tests
1 parent da8a3ae commit b84dac1

8 files changed

+8
-20
lines changed

test/c2_blackbox_exp.hjson

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{
1111
no_drive:
1212
{
13-
c3type: Envelope
13+
c3type: EnvelopeDrag
1414
shape: no_drive
1515
params:
1616
{
@@ -63,7 +63,6 @@
6363
symbol: \alpha
6464
}
6565
}
66-
drag: false
6766
}
6867
carrier:
6968
{
@@ -100,7 +99,7 @@
10099
{
101100
gauss:
102101
{
103-
c3type: Envelope
102+
c3type: EnvelopeDrag
104103
shape: gaussian_nonorm
105104
params:
106105
{
@@ -153,7 +152,6 @@
153152
symbol: \alpha
154153
}
155154
}
156-
drag: false
157155
}
158156
carrier:
159157
{
@@ -190,7 +188,7 @@
190188
{
191189
gauss:
192190
{
193-
c3type: Envelope
191+
c3type: EnvelopeDrag
194192
shape: gaussian_nonorm
195193
params:
196194
{
@@ -243,7 +241,6 @@
243241
symbol: \alpha
244242
}
245243
}
246-
drag: false
247244
}
248245
carrier:
249246
{
@@ -280,7 +277,7 @@
280277
{
281278
gauss:
282279
{
283-
c3type: Envelope
280+
c3type: EnvelopeDrag
284281
shape: gaussian_nonorm
285282
params:
286283
{
@@ -333,7 +330,6 @@
333330
symbol: \alpha
334331
}
335332
}
336-
drag: false
337333
}
338334
carrier:
339335
{
@@ -370,7 +366,7 @@
370366
{
371367
gauss:
372368
{
373-
c3type: Envelope
369+
c3type: EnvelopeDrag
374370
shape: gaussian_nonorm
375371
params:
376372
{
@@ -423,7 +419,6 @@
423419
symbol: \alpha
424420
}
425421
}
426-
drag: false
427422
}
428423
carrier:
429424
{
@@ -540,7 +535,6 @@
540535
outputs: 1
541536
params: {}
542537
resolution: 2000000000.0
543-
options: drag_2
544538
}
545539
DigitalToAnalog:
546540
{

test/generator.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"c3type": "AWG",
1010
"outputs": 1,
1111
"resolution": 2e9,
12-
"options": "drag"
1312
},
1413
"Mixer": {
1514
"c3type": "Mixer",

test/generator2.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"c3type": "AWG",
1010
"outputs": 1,
1111
"resolution": 2e9,
12-
"options": "drag"
1312
},
1413
"Mixer": {
1514
"c3type": "Mixer",

test/noise_exp_1.hjson

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@
101101
symbol: \alpha
102102
}
103103
}
104-
drag: false
105104
}
106105
carrier:
107106
{
@@ -221,7 +220,6 @@
221220
outputs: 1
222221
params: {}
223222
resolution: 2000000000.0
224-
options: ""
225223
}
226224
DigitalToAnalog:
227225
{

test/noise_exp_2.hjson

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@
101101
symbol: \alpha
102102
}
103103
}
104-
drag: false
105104
}
106105
carrier:
107106
{
@@ -221,7 +220,6 @@
221220
outputs: 1
222221
params: {}
223222
resolution: 2000000000.0
224-
options: ""
225223
}
226224
DigitalToAnalog:
227225
{

test/one_qubit.hjson

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@
144144
inputs: 0
145145
outputs: 1
146146
resolution: 2400000000.0
147-
options: "drag_2"
148147
}
149148
mixer:
150149
{

test/test_instruction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"delta": Quantity(value=-1, min_val=-5, max_val=3, unit=""),
4242
}
4343

44-
gauss_env_single = pulse.Envelope(
44+
gauss_env_single = pulse.EnvelopeDrag(
4545
name="gauss",
4646
desc="Gaussian comp for single-qubit gates",
4747
params=gauss_params_single,

test/test_pwc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
slices = int(t_final * awg_res)
5252

5353
pwc_params = {
54-
"values": Quantity(value=np.random.randn(slices), unit="V"),
54+
"inphase": Quantity(value=np.random.randn(slices), unit="V"),
55+
"quadrature": Quantity(value=np.random.randn(slices), unit="V"),
5556
"amp": Quantity(value=1.0, unit="V"),
5657
"xy_angle": Quantity(
5758
value=0.0, min_val=-0.5 * np.pi, max_val=2.5 * np.pi, unit="rad"

0 commit comments

Comments
 (0)