-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assignment of parameters in pulse
Schedule
/ScheduleBlock
doable t…
…hrough parameter name (#12088) * Added possibility of assigning Parameter and ParameterVector by name It is now possible to specify in the mapping the names of the parameters instead of the parameters themselves to assign parameters to pulse `Schedule`s and `ScheduleBlock`s. It is even possible to assign all the parameters of a ParameterVector by just specifying its name and setting as a value a list of parameter values. * Update parameter_assignment_by_name_for_pulse_schedules-3a27bbbbf235fb9e.yaml Co-authored-by: Will Shanks <wshaos@posteo.net> * Reshaped string parameter assignment Corrected mistake in string assignment Corrected mistake in string assignment * Update releasenotes/notes/parameter_assignment_by_name_for_pulse_schedules-3a27bbbbf235fb9e.yaml Co-authored-by: Will Shanks <wshaos@posteo.net> * Enabled string assignment for multiple params carrying same name The check is now based on the value type to infer if assignment should be done on Parameters or ParameterVectors Removed unnecessary import from utils Corrected string assignment Correction part 2 Corrected test The inplace=True argument was preventing the reuse of a parametrized waveform in the schedule, making the test fail * Reformat --------- Co-authored-by: Will Shanks <wshaos@posteo.net>
- Loading branch information
1 parent
393524f
commit b442b1c
Showing
5 changed files
with
118 additions
and
24 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
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
8 changes: 8 additions & 0 deletions
8
releasenotes/notes/parameter_assignment_by_name_for_pulse_schedules-3a27bbbbf235fb9e.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
features_pulse: | ||
- | | ||
It is now possible to assign parameters to pulse :class:`.Schedule`and :class:`.ScheduleBlock` objects by specifying | ||
the parameter name as a string. The parameter name can be used to assign values to all parameters within the | ||
`Schedule` or `ScheduleBlock` that have the same name. Moreover, the parameter name of a `ParameterVector` | ||
can be used to assign all values of the vector simultaneously (the list of values should therefore match the | ||
length of the vector). |
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