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
78ac3a57
Commit
78ac3a57
authored
1 year ago
by
Sander de Snoo
Browse files
Options
Downloads
Patches
Plain Diff
Fixed issue with bad aligned custom_pulse followed by ramp of > 1000 points.
parent
ec23470b
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/qblox/pulsar_sequencers.py
+10
-13
10 additions, 13 deletions
pulse_lib/qblox/pulsar_sequencers.py
with
10 additions
and
13 deletions
pulse_lib/qblox/pulsar_sequencers.py
+
10
−
13
View file @
78ac3a57
...
...
@@ -279,7 +279,7 @@ class Voltage1nsSequenceBuilder(VoltageSequenceBuilder):
duration
=
t_end
-
t_start
t_start_offset
=
t_start
%
4
# @@@ PulsarConfig.offset()
t_start_offset
=
t_start
%
4
# @@@ PulsarConfig.offset()
if
duration
==
0
and
t_start_offset
==
0
:
# Used to reset voltage at end of segment.
...
...
@@ -293,18 +293,15 @@ class Voltage1nsSequenceBuilder(VoltageSequenceBuilder):
self
.
_emit_if_gap
(
t_start
)
is_ramp
=
abs
(
v_end
-
v_start
)
>
_lsb_step
is_long
=
duration
>
(
100
if
is_ramp
else
40
)
dvdt
=
(
v_end
-
v_start
)
/
(
t_end
-
t_start
)
dvdt
=
(
v_end
-
v_start
)
/
(
t_end
-
t_start
)
is_ramp
=
abs
(
v_end
-
v_start
)
>
_lsb_step
line_start
=
PulsarConfig
.
ceil
(
max
(
t_start
,
self
.
_t_wave_end
))
line_end
=
PulsarConfig
.
floor
(
t_end
)
is_long
=
(
line_end
-
line_start
)
>
(
100
if
is_ramp
else
40
)
if
self
.
_rendering
and
t_start
<
self
.
_t_wave_end
:
# Already rendered beyond start of this ramp.
# Custom pulse or sine already rendered.
# Do not try to emit waveform.
self
.
_render_ramp
(
t_start
,
t_end
,
v_start
,
v_end
)
elif
is_long
:
if
t_start_offset
:
t_end_wave
=
PulsarConfig
.
ceil
(
t_start
)
if
is_long
:
if
line_start
-
t_start
>
0
:
t_end_wave
=
line_start
v_end_wave
=
v_start
+
dvdt
*
(
t_end_wave
-
t_start
)
self
.
_render_ramp
(
t_start
,
t_end_wave
,
v_start
,
v_end_wave
)
self
.
_emit_waveform
(
t_end_wave
)
...
...
@@ -313,7 +310,7 @@ class Voltage1nsSequenceBuilder(VoltageSequenceBuilder):
elif
self
.
_rendering
:
self
.
_emit_waveform
(
t_start
)
t_end_ramp
=
PulsarConfig
.
floor
(
t
_end
)
t_end_ramp
=
line
_end
if
t_end_ramp
!=
t_end
:
v_end_ramp
=
v_end
+
dvdt
*
(
t_end_ramp
-
t_end
)
self
.
_ramp
(
t_start
,
t_end_ramp
,
v_start
,
v_end_ramp
)
...
...
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