About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
AlignEquispaced
class AlignEquispaced(duration)
Bases: qiskit.pulse.transforms.alignments.AlignmentKind
Align instructions with equispaced interval within a specified duration.
Instructions played on different channels are also arranged in a sequence. This alignment is convenient to create dynamical decoupling sequences such as PDD.
Create new equispaced context.
Parameters
duration (Union
[int
, ParameterExpression
]) – Duration of this context. This should be larger than the schedule duration. If the specified duration is shorter than the schedule duration, no alignment is performed and the input schedule is just returned. This duration can be parametrized.
Methods
align
AlignEquispaced.align(schedule)
Reallocate instructions according to the policy.
Only top-level sub-schedules are aligned. If sub-schedules are nested, nested schedules are not recursively aligned.
Parameters
schedule (Schedule
) – Schedule to align.
Return type
Returns
Schedule with reallocated instructions.
to_dict
AlignEquispaced.to_dict()
Returns dictionary to represent this alignment.
Return type
Dict
[str
, Any
]
Attributes
duration
Return context duration.
is_sequential
Return type
bool
Was this page helpful?
Report a bug or request content on GitHub.