This repository was archived by the owner on Oct 31, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Fix pulse to signal converter #164
Merged
DanPuzzuoli
merged 14 commits into
qiskit-community:main
from
to24toro:fix_pulse_to_signal_converter
Dec 15, 2022
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5fccc23
add phase accumulation
to24toro f27f988
add delay test
to24toro ddd1077
remove unused variable
to24toro 9be94cc
add reno
to24toro 391f058
fix reno
to24toro 5f001d8
delete variable phase_accumulation
to24toro d743528
add delay_and_phase_accumulation_tests
to24toro 9c02831
Adding jax.Array to the JAX types in dispatch (#162)
DanPuzzuoli bc55b03
minor formatting changes to tests
DanPuzzuoli 4440c98
formatting by lint and black
to24toro 7d258d8
Merge branch 'main' into fix_pulse_to_signal_converter
DanPuzzuoli 77778c5
removing comments and modifying text alignment
DanPuzzuoli e47b340
Update pulse_to_signals.py
DanPuzzuoli f5ad5d8
fixing linting
DanPuzzuoli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
8 changes: 8 additions & 0 deletions
8
releasenotes/notes/fix_delay_and_phase_accumulation-25c8b4c501110c50.yaml
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| fixes: | ||
| - | | ||
| :class:`.InstructionToSignals` has been updated to fix issues with phase accumulation | ||
| resulting from ``SetFrequency`` and ``ShiftFrequency`` instructions. A phase accumulation | ||
| term has been added so that the digitized carrier frequency is continuous across these | ||
| instructions. A related phase error when generating samples for channels subject to | ||
| ``SetFrequency`` and ``ShiftFrequency`` instructions has also been fixed. |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change this to:
I just find the negative slightly confusing in this case.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I adapt this to
phase_accumulations[chan] -= inst.frequency * start_sample * self._dt.Do I also need to change the sign to plus ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No that's okay - you can actually leave both as is - it was only a slight preference on my part, but doesn't really matter.