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
1b5ca00d
Commit
1b5ca00d
authored
1 year ago
by
Sander Snoo
Browse files
Options
Downloads
Patches
Plain Diff
Log warning when sequence run duration > 3 s
parent
7d58f183
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pulse_lib/keysight/M3202A_uploader.py
+5
-0
5 additions, 0 deletions
pulse_lib/keysight/M3202A_uploader.py
pulse_lib/keysight/qs_uploader.py
+6
-0
6 additions, 0 deletions
pulse_lib/keysight/qs_uploader.py
with
11 additions
and
0 deletions
pulse_lib/keysight/M3202A_uploader.py
+
5
−
0
View file @
1b5ca00d
...
...
@@ -249,6 +249,8 @@ class M3202A_Uploader:
if
channels
is
None
:
channels
=
list
(
job
.
n_acq_samples
.
keys
())
sample_rate
=
job
.
acquisition_conf
.
sample_rate
if
job
.
acquisition
.
f_sweep
is
not
None
:
raise
Exception
(
"
In-sequence resonator frequency sweep not supported for Keysight
"
)
for
channel_name
,
t_measure
in
job
.
t_measure
.
items
():
if
channel_name
not
in
channels
:
continue
...
...
@@ -454,6 +456,9 @@ class M3202A_Uploader:
schedule_params
=
self
.
_get_hvi_params
(
job
)
job
.
hw_schedule
.
set_configuration
(
schedule_params
,
job
.
n_waveforms
)
n_rep
=
job
.
n_rep
if
job
.
n_rep
else
1
run_duration
=
n_rep
*
job
.
playback_time
*
1e-9
+
0.1
if
run_duration
>
3.0
:
logger
.
warning
(
f
"
Expected duration for point:
{
run_duration
:
.
1
f
}
s
"
)
job
.
hw_schedule
.
start
(
job
.
playback_time
,
n_rep
,
schedule_params
)
if
release_job
:
...
...
This diff is collapsed.
Click to expand it.
pulse_lib/keysight/qs_uploader.py
+
6
−
0
View file @
1b5ca00d
...
...
@@ -331,6 +331,9 @@ class QsUploader:
sample_rate
=
None
else
:
sample_rate
=
job
.
acquisition_conf
.
sample_rate
if
job
.
acquisition
.
f_sweep
is
not
None
:
raise
Exception
(
"
In sequence resonator frequency sweep not supported for Keysight
"
)
for
channel_name
,
t_measure
in
job
.
t_measure
.
items
():
if
channel_name
not
in
channels
:
continue
...
...
@@ -620,6 +623,9 @@ class QsUploader:
schedule_params
=
self
.
_get_hvi_params
(
job
)
job
.
hw_schedule
.
set_configuration
(
schedule_params
,
job
.
n_waveforms
)
n_rep
=
job
.
n_rep
if
job
.
n_rep
else
1
run_duration
=
n_rep
*
job
.
playback_time
*
1e-9
+
0.1
if
run_duration
>
3.0
:
logger
.
warning
(
f
"
Expected duration for point:
{
run_duration
:
.
1
f
}
s
"
)
job
.
hw_schedule
.
start
(
job
.
playback_time
,
n_rep
,
schedule_params
)
if
release_job
:
...
...
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