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
f3129c77
Commit
f3129c77
authored
4 months ago
by
Sander Snoo
Browse files
Options
Downloads
Patches
Plain Diff
Fixed pulse shaping with scipy windows
parent
9a1dbb4f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
pulse_lib/segments/data_classes/data_IQ.py
+6
-6
6 additions, 6 deletions
pulse_lib/segments/data_classes/data_IQ.py
with
10 additions
and
6 deletions
CHANGELOG.md
+
4
−
0
View file @
f3129c77
# Changelog
All notable changes to Pulselib will be documented in this file.
## \[1.7.34] - 2024-10-25
-
Fixed pulse shaping with scipy windows
## \[1.7.33] - 2024-10-23
-
Improved waveform partitioning in Qblox compiler to reduce memory usage.
...
...
This diff is collapsed.
Click to expand it.
pulse_lib/segments/data_classes/data_IQ.py
+
6
−
6
View file @
f3129c77
...
...
@@ -38,19 +38,19 @@ class envelope_generator():
"""
n_points
=
delta_t
*
sample_rate
if
n_points
<
1
:
#skip
if
n_points
<
1
:
#
skip
return
0.0
if
self
.
AM_envelope_function
is
None
:
envelope
=
1.0
#
assume
constant envelope
envelope
=
1.0
# constant envelope
elif
isinstance
(
self
.
AM_envelope_function
,
tuple
)
or
isinstance
(
self
.
AM_envelope_function
,
str
):
envelope
=
signal
.
get_window
(
self
.
AM_envelope_function
,
int
(
n_points
*
10
))[::
10
][:
int
(
n_points
)]
#ugly fix
envelope
=
signal
.
get_window
(
self
.
AM_envelope_function
,
int
(
n_points
),
False
)
else
:
envelope
=
self
.
AM_envelope_function
(
delta_t
,
sample_rate
,
**
self
.
kwargs
)
return
envelope
def
get_PM_envelope
(
self
,
delta_t
:
float
,
sample_rate
:
float
=
1
):
def
get_PM_envelope
(
self
,
delta_t
:
float
,
sample_rate
:
float
=
1
.0
):
"""
Return the phase modulation values for the wave.
...
...
@@ -63,13 +63,13 @@ class envelope_generator():
"""
n_points
=
delta_t
*
sample_rate
if
n_points
<
1
:
#skip
if
n_points
<
1
:
#
skip
return
0
if
self
.
PM_envelope_function
is
None
:
envelope
=
0
elif
isinstance
(
self
.
PM_envelope_function
,
tuple
)
or
isinstance
(
self
.
PM_envelope_function
,
str
):
envelope
=
signal
.
get_window
(
self
.
PM_envelope_function
,
int
(
n_points
*
10
))[::
10
]
envelope
=
signal
.
get_window
(
self
.
PM_envelope_function
,
int
(
n_points
),
False
)
else
:
envelope
=
self
.
PM_envelope_function
(
delta_t
,
sample_rate
,
**
self
.
kwargs
)
...
...
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