German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

AlignEquispaced

class AlignEquispaced(duration)[Quellcode]

Bases: 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.

Parameter

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

Reallocate instructions according to the policy.

to_dict

Returns dictionary to represent this alignment.

Attributes

duration

Return context duration.

is_sequential