qiskit-documentation/docs/api/qiskit/0.37/qiskit.pulse.transforms.Ali...

63 lines
1.7 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: AlignRight
description: API reference for qiskit.pulse.transforms.AlignRight
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.pulse.transforms.AlignRight
---
# AlignRight
<Class id="qiskit.pulse.transforms.AlignRight" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.21/qiskit/pulse/transforms/alignments.py" signature="AlignRight" modifiers="class">
Bases: [`qiskit.pulse.transforms.alignments.AlignmentKind`](pulse#qiskit.pulse.transforms.AlignmentKind "qiskit.pulse.transforms.alignments.AlignmentKind")
Align instructions in as-late-as-possible manner.
Instructions are placed at latest available timeslots.
Create new right-justified context.
## Methods
### align
<Function id="qiskit.pulse.transforms.AlignRight.align" signature="AlignRight.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.
**Return type**
[`Schedule`](qiskit.pulse.Schedule "qiskit.pulse.schedule.Schedule")
**Returns**
Schedule with reallocated instructions.
</Function>
### to\_dict
<Function id="qiskit.pulse.transforms.AlignRight.to_dict" signature="AlignRight.to_dict()">
Returns dictionary to represent this alignment.
**Return type**
`Dict`\[`str`, `Any`]
</Function>
## Attributes
### is\_sequential
<Attribute id="qiskit.pulse.transforms.AlignRight.is_sequential">
**Return type**
`bool`
</Attribute>
</Class>