-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support different pulse shapes (#85)
* Add pulse shape Different pulse shapes are generated using window functions from `scipy.signal.windows`. A generate_pulse_shape method is defined and can be used to generate pulse shape with the arbitrary area and required maximum. It is a class method as it is independent of the instances created. Having it as a class method, however, simplifies the importation. Single qubit compilers are still defined in each subclass, despite some code duplication. They all make use of the generate_pulse_shape method. This is easier to understand compared to including all variants (name of operators, parameters etc) in one function. We choose to use the keyword *shape* rather than *window*, in contrast to SciPy. The terms *pulse window* and *pulse shape* describe the same thing. However, the former is more used in the context of signal processing, in particular FFT, to remove the boundary effect. The term shape here is more appropriate and straightforward to understand. Co-authored-by: Simon Cross <165551+hodgestar@users.noreply.github.com>
- Loading branch information
Showing
7 changed files
with
513 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.