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
bbdf1ead
Commit
bbdf1ead
authored
1 year ago
by
Sander Snoo
Browse files
Options
Downloads
Patches
Plain Diff
Fixed I-only qubit drive
parent
b4a2e89a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pulse_lib/qblox/pulsar_uploader.py
+26
-14
26 additions, 14 deletions
pulse_lib/qblox/pulsar_uploader.py
with
26 additions
and
14 deletions
pulse_lib/qblox/pulsar_uploader.py
+
26
−
14
View file @
bbdf1ead
...
...
@@ -73,21 +73,32 @@ class PulsarUploader:
for
name
,
qubit_ch
in
self
.
qubit_channels
.
items
():
iq_out_channels
=
qubit_ch
.
iq_channel
.
IQ_out_channels
i_ch
=
None
q_ch
=
None
for
iq_out_ch
in
iq_out_channels
:
if
iq_out_ch
.
image
==
'
-
'
:
if
len
(
iq_out_channels
)
==
1
:
# if there is only 1 channel it must be I
i_out_ch
=
iq_out_channels
[
0
]
if
i_out_ch
.
IQ_comp
!=
'
I
'
:
raise
ValueError
(
"
Single channel drive must be I channel
"
)
if
i_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
])
awg_ch
=
self
.
awg_channels
[
i_out_ch
.
awg_channel_name
]
module_name
=
awg_ch
.
awg_name
q1
.
add_control
(
name
,
module_name
,
[
awg_ch
.
channel_number
])
else
:
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
():
out_ch
=
[]
...
...
@@ -457,6 +468,7 @@ class Job(object):
pending_resets
=
set
()
latching_enabled
=
False
last_t
=
0
# TODO @@@ change timestamp to interval for all events.
for
t
,
channel_name
,
action
in
sorted
(
events
):
feedback_channels
.
add
(
channel_name
)
if
t
!=
last_t
and
(
len
(
latching_counters
)
>
0
)
!=
latching_enabled
:
...
...
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