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
8c901800
Commit
8c901800
authored
1 year ago
by
Sander de Snoo
Browse files
Options
Downloads
Patches
Plain Diff
Check I and Q components of IQ channel
parent
a2a149fd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pulse_lib/qblox/pulsar_uploader.py
+13
-2
13 additions, 2 deletions
pulse_lib/qblox/pulsar_uploader.py
with
13 additions
and
2 deletions
pulse_lib/qblox/pulsar_uploader.py
+
13
−
2
View file @
8c901800
...
...
@@ -73,9 +73,20 @@ class PulsarUploader:
for
name
,
qubit_ch
in
self
.
qubit_channels
.
items
():
iq_out_channels
=
qubit_ch
.
iq_channel
.
IQ_out_channels
out_channels
=
[
self
.
awg_channels
[
iq_out_ch
.
awg_channel_name
]
for
iq_out_ch
in
iq_out_channels
]
i_ch
=
None
q_ch
=
None
for
iq_out_ch
in
iq_out_channels
:
if
iq_out_ch
.
image
==
'
-
'
:
raise
ValueError
(
"
Negative IQ image not supported on Qblox
"
)
awg_ch
=
self
.
awg_channels
[
iq_out_ch
.
awg_channel_name
]
if
iq_out_ch
.
IQ_comp
==
'
I
'
:
i_ch
=
awg_ch
elif
iq_out_ch
.
IQ_comp
==
'
Q
'
:
q_ch
=
awg_ch
out_channels
=
[
i_ch
,
q_ch
]
module_name
=
out_channels
[
0
].
awg_name
if
out_channels
[
1
].
awg_name
!=
module_name
:
raise
ValueError
(
"
I and Q channel must be on same Qblox module
"
)
q1
.
add_control
(
name
,
module_name
,
[
out_ch
.
channel_number
for
out_ch
in
out_channels
])
for
name
,
dig_ch
in
self
.
digitizer_channels
.
items
():
...
...
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