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
0cc06220
Commit
0cc06220
authored
2 years ago
by
Sander Snoo
Browse files
Options
Downloads
Patches
Plain Diff
Corrected basic example
parent
3959031b
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
docs/tutorials/basic_example.rst
+72
-5
72 additions, 5 deletions
docs/tutorials/basic_example.rst
with
72 additions
and
5 deletions
docs/tutorials/basic_example.rst
+
72
−
5
View file @
0cc06220
...
...
@@ -11,8 +11,11 @@ Configure pulse_lib
Create a pulse_lib object with gates for voltage pulses and 2 qubit channels for MW pulses.
.. code-block:: python
from pulse_lib.base_pulse import pulselib
from pulse_lib.virtual_channel_constructors import IQ_channel_constructor
pl = pulse_lib(backend='Keysight')
pl = pulse_lib(backend='Qblox')
pl.configure_digitizer = True
# add AWGs and digitizers
pl.add_awg(awg1)
...
...
@@ -49,7 +52,7 @@ A sequence is made of one or more segments. Here we use a single segment.
.. code-block:: python
seg = pl.
create
_segment()
seg = pl.
mk
_segment()
Initialize the qubit with a voltage pulse on the gates.
After the pulse the voltage returns to (0.0, 0.0)
...
...
@@ -93,8 +96,12 @@ The acquired data can be retrieved with the acquisition parameter. This is a qco
.. code-block:: python
seq = pl.make_sequence([seg])
acq_param = seq.get_acquisition_param()
seq = pl.mk_sequence([seg])
# NOTE: A hardware schedule must be set for Keysight and Tektronix. See below.
# sequence.set_hw_schedule(hw_schedule)
measurement_param = seq.get_measurement_param()
# upload sequence data to AWG
seq.upload()
...
...
@@ -102,5 +109,65 @@ The acquired data can be retrieved with the acquisition parameter. This is a qco
seq.play()
# retrieve measurement data
data = acq_param()
data = measurement_param()
Hardware schedule
-----------------
Pulselib needs a hardware schedule to properly configure the digitizer triggers
and loops on the Tektronix and Keysight AWGs.
Keysight
////////
For Keysight you need HVI2 scripts with a license to use Pathwave TestSyncExecutive.
There is a set of scripts available in core-tools.
.. code-block:: python
from core_tools.HVI2.hvi2_schedule_loader import Hvi2ScheduleLoader
seq = pl.mk_sequence([seg])
hw_schedule = Hvi2ScheduleLoader(pl, 'SingleShot', digitizer)
sequence.set_hw_schedule(hw_schedule)
Tektronix + M4i hardware schedule
/////////////////////////////////
.. code-block:: python
from pulse_lib.schedule.tektronix_schedule import TektronixSchedule
seq = pl.mk_sequence([seg])
hw_schedule = TektronixSchedule(pl)
sequence.set_hw_schedule(hw_schedule)
Tektronix + ATS hardware schedule
/////////////////////////////////
.. code-block:: python
from pulse_lib.schedule.tektronix_schedule import TektronixAtsSchedule
seq = pl.mk_sequence([seg])
hw_schedule = TektronixAtsSchedule(pl, acquisition_controller)
sequence.set_hw_schedule(hw_schedule)
Tektronix + ATS hardware schedule
/////////////////////////////////
.. code-block:: python
from pulse_lib.schedule.tektronix_schedule import TektronixUHFLISchedule
seq = pl.mk_sequence([seg])
hw_schedule = TektronixUHFLISchedule(pl, lockin, seq.n_reps)
sequence.set_hw_schedule(hw_schedule)
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