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
ea252b47
Commit
ea252b47
authored
2 years ago
by
Sander de Snoo
Browse files
Options
Downloads
Patches
Plain Diff
Added MW frequency check.
Add trigger_offset_ns to overall delay.
parent
4ae1efd2
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
+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 @
ea252b47
...
...
@@ -82,8 +82,8 @@ class PulsarUploader:
out_ch
=
[]
rf_source
=
dig_ch
.
rf_source
if
rf_source
is
not
None
:
if
rf_source
.
mode
!=
'
continuous
'
and
rf_source
.
trigger_offset_ns
is
None
:
raise
Exception
(
f
"'
{
self
.
name
}
'
RF source mode
{
rf_source
.
mode
}
trigger_offset_ns not specified
"
)
if
rf_source
.
trigger_offset_ns
is
None
:
raise
Exception
(
f
"'
{
self
.
name
}
'
RF source mode trigger_offset_ns not specified
"
)
out
=
rf_source
.
output
if
out
is
str
or
len
(
out
)
!=
2
:
raise
Exception
(
f
'
Resonator must be defined as (module_name,channel).
'
...
...
@@ -495,6 +495,13 @@ class UploadAggregator:
delays
.
append
(
channel
.
delay
-
channel
.
setup_ns
)
delays
.
append
(
channel
.
delay
+
channel
.
hold_ns
)
for
channel
in
digitizer_channels
.
values
():
delays
.
append
(
channel
.
delay
)
if
channel
.
rf_source
:
rf_source
=
channel
.
rf_source
rf_source
.
trigger_offset_ns
=
PulsarConfig
.
floor
(
rf_source
.
trigger_offset_ns
)
delays
.
append
(
-
rf_source
.
trigger_offset_ns
)
self
.
max_pre_start_ns
=
-
min
(
0
,
*
delays
)
self
.
max_post_end_ns
=
max
(
0
,
*
delays
)
...
...
@@ -682,7 +689,11 @@ class UploadAggregator:
# TODO @@@ Check: LO frequency can change during sweep
lo_freq
=
qubit_channel
.
iq_channel
.
LO
if
qubit_channel
.
reference_frequency
is
None
:
raise
Exception
(
f
'
Qubit idle frequency not set for
{
channel_name
}
'
)
nco_freq
=
qubit_channel
.
reference_frequency
-
lo_freq
if
abs
(
nco_freq
)
>
300e6
:
raise
Exception
(
f
'
NCO frequency
{
nco_freq
/
1e6
:
5.1
f
}
MHz out of range
'
)
seq
=
IQSequenceBuilder
(
channel_name
,
self
.
program
[
channel_name
],
nco_freq
,
...
...
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