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
b92400ed
Commit
b92400ed
authored
1 year ago
by
Sander de Snoo
Browse files
Options
Downloads
Patches
Plain Diff
Added feedback configuration
parent
e51d8d11
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
+33
-0
33 additions, 0 deletions
pulse_lib/tests/configurations/test_configuration.py
with
33 additions
and
0 deletions
pulse_lib/tests/configurations/test_configuration.py
+
33
−
0
View file @
b92400ed
...
...
@@ -117,6 +117,39 @@ class Context:
self
.
awgs
=
awgs
self
.
digitizers
=
digs
if
backend
==
'
Keysight_QS
'
:
self
.
_configure_pxi
()
def
_configure_pxi
(
self
):
import
keysightSD1
as
SD1
from
keysight_fpga.sd1.sd1_utils
import
check_error
pxi_triggers
=
[
SD1
.
SD_TriggerExternalSources
.
TRIGGER_PXI6
,
SD1
.
SD_TriggerExternalSources
.
TRIGGER_PXI7
,
]
# configure AWG PXI trigger in
for
awg
in
self
.
awgs
:
print
(
'
pxi
'
,
awg
.
name
)
with
awg
.
_lock
:
for
pxi
in
pxi_triggers
:
check_error
(
awg
.
awg
.
FPGATriggerConfig
(
pxi
,
SD1
.
SD_FpgaTriggerDirection
.
IN
,
SD1
.
SD_TriggerPolarity
.
ACTIVE_LOW
,
SD1
.
SD_SyncModes
.
SYNC_NONE
,
0
))
# configure digitizer PXI trigger out
for
pxi
in
pxi_triggers
:
check_error
(
self
.
digitizers
[
0
].
SD_AIN
.
FPGATriggerConfig
(
pxi
,
SD1
.
SD_FpgaTriggerDirection
.
INOUT
,
SD1
.
SD_TriggerPolarity
.
ACTIVE_LOW
,
SD1
.
SD_SyncModes
.
SYNC_NONE
,
0
))
def
init_pulselib
(
self
,
n_gates
=
0
,
n_qubits
=
0
,
n_markers
=
0
,
n_sensors
=
0
,
rf_sources
=
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