Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pulse_lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
QuTech QDLabs
pulse_lib
Commits
676c4d51
Commit
676c4d51
authored
2 years ago
by
Sander de Snoo
Browse files
Options
Downloads
Patches
Plain Diff
Fixed tests for Qblox cluster
parent
643cc465
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pulse_lib/tests/configurations/configurations.yaml
+18
-4
18 additions, 4 deletions
pulse_lib/tests/configurations/configurations.yaml
pulse_lib/tests/configurations/test_configuration.py
+11
-11
11 additions, 11 deletions
pulse_lib/tests/configurations/test_configuration.py
with
29 additions
and
15 deletions
pulse_lib/tests/configurations/configurations.yaml
+
18
−
4
View file @
676c4d51
...
...
@@ -81,6 +81,21 @@ TektronixMocked:
QbloxV1
:
station
:
qblox_v1.yaml
backend
:
Qblox
awg_channels
:
Qblox_module2
:
[
P1
,
P2
,
P3
,]
Qblox_module4
:
[
P4
,
P5
,
P6
,
P7
]
Qblox_module6
:
[
I1
,
Q1
,
I2
,
Q2
]
markers
:
M1
:
[
Qblox_module2
,
0
]
M_IQ
:
[
Qblox_module6
,
0
]
sensors
:
SD1
:
[
Qblox_module8
,
0
]
SD2
:
[
Qblox_module8
,
1
]
runner
:
core_tools
QbloxGS1
:
station
:
qblox_gs1.yaml
backend
:
Qblox
awg_channels
:
Qblox_module2
:
[
P1
,
P2
,
P3
,]
Qblox_module4
:
[
P4
,
P5
,
P6
,
P7
]
...
...
@@ -88,12 +103,11 @@ QbloxV1:
markers
:
M1
:
[
Qblox_module2
,
1
]
M_IQ
:
[
Qblox_module6
,
1
]
dig_channel
s
:
SD1
:
[
Qblox_module
8
,
1
]
SD2
:
[
Qblox_module
8
,
2
]
sensor
s
:
SD1
:
[
Qblox_module
10
,
0
]
SD2
:
[
Qblox_module
10
,
1
]
runner
:
core_tools
KeysightSdS
:
station
:
keysight_test_sds.yaml
backend
:
Keysight
...
...
This diff is collapsed.
Click to expand it.
pulse_lib/tests/configurations/test_configuration.py
+
11
−
11
View file @
676c4d51
...
...
@@ -66,8 +66,9 @@ class Context:
awgs
=
[]
digs
=
[]
# map Qblox Cluster to AWG1 and digitizer
if
'
Cluster
'
in
station
.
components
:
cluster
=
station
.
Cluster
if
'
Qblox
'
in
station
.
components
:
cluster
=
station
.
Qblox
cluster
.
reset
()
for
module
in
cluster
.
modules
:
if
module
.
present
():
rf
=
'
RF
'
if
module
.
is_rf_type
else
''
...
...
@@ -121,10 +122,10 @@ class Context:
gates
=
[]
for
i
in
range
(
n_gates
):
gate
=
f
'
P
{
i
+
1
}
'
awg
,
channel
=
gate_map
[
gate
]
if
awg
not
in
pulse
.
awg_devices
:
pulse
.
add_awg
(
station
.
components
[
awg
]
)
pulse
.
define_channel
(
gate
,
awg
,
channel
)
awg
_name
,
channel
=
gate_map
[
gate
]
if
awg
_name
not
in
pulse
.
awg_devices
:
pulse
.
add_awg
(
getattr
(
station
,
awg_name
)
)
pulse
.
define_channel
(
gate
,
awg
_name
,
channel
)
pulse
.
add_channel_compensation_limit
(
gate
,
(
-
100
,
50
))
# pulse.add_channel_attenuation(name, 0.2)
# pulse.add_channel_delay(name, value)
...
...
@@ -178,10 +179,10 @@ class Context:
pulse
.
configure_digitizer
=
True
for
i
in
range
(
n_sensors
):
sensor
=
f
'
SD
{
i
+
1
}
'
digitizer
,
channel
=
cfg
[
'
sensors
'
][
sensor
]
if
digitizer
not
in
pulse
.
digitizers
:
pulse
.
add_digitizer
(
station
.
components
[
digitizer
]
)
pulse
.
define_digitizer_channel
(
sensor
,
digitizer
,
channel
)
digitizer
_name
,
channel
=
cfg
[
'
sensors
'
][
sensor
]
if
digitizer
_name
not
in
pulse
.
digitizers
:
pulse
.
add_digitizer
(
getattr
(
station
,
digitizer
_name
)
)
pulse
.
define_digitizer_channel
(
sensor
,
digitizer
_name
,
channel
)
if
n_sensors
>
0
and
backend
==
'
Tektronix_5014
'
:
self
.
_add_marker
(
'
M_M4i
'
)
...
...
@@ -210,7 +211,6 @@ class Context:
if
'
Dig1
'
not
in
pulse
.
digitizers
:
pulse
.
add_digitizer
(
station
.
components
[
'
Dig1
'
])
if
finish
:
pulse
.
finish_init
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment