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
75323df8
Commit
75323df8
authored
2 years ago
by
Sander de Snoo
Browse files
Options
Downloads
Patches
Plain Diff
Use schedule mock
parent
541f2ae9
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/examples/example_dig_param.py
+4
-4
4 additions, 4 deletions
pulse_lib/examples/example_dig_param.py
with
4 additions
and
4 deletions
pulse_lib/examples/example_dig_param.py
+
4
−
4
View file @
75323df8
...
...
@@ -7,8 +7,8 @@ from collections.abc import Sequence
import
qcodes.logger
as
logger
from
qcodes.logger
import
start_all_logging
#
from pulse_lib.tests.hw_schedule_mock import HardwareScheduleMock
from
projects.keysight_measurement.hvi2.hvi2_schedule_loader
import
Hvi2ScheduleLoader
from
pulse_lib.tests.hw_schedule_mock
import
HardwareScheduleMock
#
from projects.keysight_measurement.hvi2.hvi2_schedule_loader import Hvi2ScheduleLoader
from
configuration.medium_iq
import
init_hardware
,
init_pulselib
from
utils.plot
import
plot_awgs
...
...
@@ -46,7 +46,6 @@ def create_seq(pulse_lib):
# generate the sequence and upload it.
my_seq
=
pulse_lib
.
mk_sequence
([
seg1
,
seg2
,
seg3
])
# my_seq.set_hw_schedule(HardwareScheduleMock())
my_seq
.
n_rep
=
10
return
my_seq
...
...
@@ -64,7 +63,8 @@ t_measure = 5_000
pulse
.
set_digitizer_phase
(
'
SD2
'
,
-
0.228
*
np
.
pi
)
my_seq
=
create_seq
(
pulse
)
my_seq
.
set_hw_schedule
(
Hvi2ScheduleLoader
(
pulse
,
"
SingleShot
"
,
digs
[
0
]))
#my_seq.set_hw_schedule(Hvi2ScheduleLoader(pulse, "SingleShot", digs[0]))
my_seq
.
set_hw_schedule
(
HardwareScheduleMock
())
my_seq
.
set_acquisition
(
t_measure
=
t_measure
)
param
=
my_seq
.
get_measurement_param
(
'
Test
'
,
upload
=
'
auto
'
,
iq_complex
=
False
)
...
...
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