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
dc8e17cb
Commit
dc8e17cb
authored
1 year ago
by
Sander Snoo
Browse files
Options
Downloads
Patches
Plain Diff
Improved test with plunger driving on QS
parent
913956a6
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/tests/configurations/test_configuration.py
+10
-2
10 additions, 2 deletions
pulse_lib/tests/configurations/test_configuration.py
with
10 additions
and
2 deletions
pulse_lib/tests/configurations/test_configuration.py
+
10
−
2
View file @
dc8e17cb
...
...
@@ -204,9 +204,10 @@ class Context:
qubit
=
i
+
1
if
backend
==
'
Keysight_QS
'
:
# Use a new awg channel on the same output to drive the qubit.
drive_channel_name
=
f
"
P
{
qubit
}
_drive
"
awg_channel
=
pulse
.
awg_channels
[
f
"
P
{
qubit
}
"
]
pulse
.
define_channel
(
drive_channel_name
,
awg_channel
.
awg_name
,
awg_channel
.
channel_number
)
drive_channel_name
=
f
"
P
{
qubit
}
_drive
"
if
drive_channel_name
not
in
pulse
.
awg_channels
:
pulse
.
define_channel
(
drive_channel_name
,
awg_channel
.
awg_name
,
awg_channel
.
channel_number
)
else
:
drive_channel_name
=
f
"
P
{
qubit
}
"
iq_channel_name
=
f
"
drive_q
{
qubit
}
"
...
...
@@ -334,6 +335,13 @@ class Context:
return
pulse
def
copy_attenuation_to_drive
(
self
):
pulse
=
self
.
pulse
for
channel_name
,
awg_channel
in
pulse
.
awg_channels
.
items
():
if
channel_name
.
endswith
(
"
_drive
"
):
base_channel
=
pulse
.
awg_channels
[
channel_name
[:
-
6
]]
awg_channel
.
attenuation
=
base_channel
.
attenuation
def
_add_marker
(
self
,
name
,
setup_ns
=
0
,
hold_ns
=
0
):
cfg
=
self
.
_configuration
pulse
=
self
.
pulse
...
...
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