63 lines
2.2 KiB
Plaintext
63 lines
2.2 KiB
Plaintext
---
|
||
title: AlignSequential
|
||
description: API reference for qiskit.pulse.transforms.AlignSequential
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.pulse.transforms.AlignSequential
|
||
---
|
||
|
||
# AlignSequential
|
||
|
||
<Class id="qiskit.pulse.transforms.AlignSequential" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.25/qiskit/pulse/transforms/alignments.py" signature="qiskit.pulse.transforms.AlignSequential" modifiers="class">
|
||
Bases: [`AlignmentKind`](pulse#qiskit.pulse.transforms.AlignmentKind "qiskit.pulse.transforms.alignments.AlignmentKind")
|
||
|
||
Align instructions sequentially.
|
||
|
||
Instructions played on different channels are also arranged in a sequence. No buffer time is inserted in between instructions.
|
||
|
||
Create new sequential context.
|
||
|
||
## Attributes
|
||
|
||
### is\_sequential
|
||
|
||
<Attribute id="qiskit.pulse.transforms.AlignSequential.is_sequential" />
|
||
|
||
## Methods
|
||
|
||
### align
|
||
|
||
<Function id="qiskit.pulse.transforms.AlignSequential.align" signature="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*](qiskit.pulse.Schedule "qiskit.pulse.schedule.Schedule")) – Schedule to align.
|
||
|
||
**Returns**
|
||
|
||
Schedule with reallocated instructions.
|
||
|
||
**Return type**
|
||
|
||
[*Schedule*](qiskit.pulse.Schedule "qiskit.pulse.schedule.Schedule")
|
||
</Function>
|
||
|
||
### to\_dict
|
||
|
||
<Function id="qiskit.pulse.transforms.AlignSequential.to_dict" signature="to_dict()">
|
||
Returns dictionary to represent this alignment.
|
||
|
||
<Admonition title="Deprecated since version 0.21" type="danger">
|
||
The method `qiskit.pulse.transforms.alignments.AlignmentKind.to_dict()` is deprecated as of qiskit-terra 0.21. It will be removed no earlier than 3 months after the release date.
|
||
</Admonition>
|
||
|
||
**Return type**
|
||
|
||
[*Dict*](https://docs.python.org/3/library/typing.html#typing.Dict "(in Python v3.12)")\[[str](https://docs.python.org/3/library/stdtypes.html#str "(in Python v3.12)"), [*Any*](https://docs.python.org/3/library/typing.html#typing.Any "(in Python v3.12)")]
|
||
</Function>
|
||
</Class>
|
||
|