ISARefNode Class
A reference to a bound ISA in the enumeration context.
This node looks up the binding from the context and yields the bound ISA.
Constructor
ISARefNode(name: str)
Parameters
| Name | Description |
|---|---|
|
name
Required
|
The name of the bound ISA to reference. |
Methods
| enumerate |
Yields the bound ISA from the context. |
| populate |
Instructions already in graph from the bound component. |
enumerate
Yields the bound ISA from the context.
enumerate(ctx: ISAContext) -> Generator[ISA, None, None]
Parameters
| Name | Description |
|---|---|
|
ctx
Required
|
<xref:qdk.qre.Context>
The enumeration context containing bindings. |
Exceptions
| Type | Description |
|---|---|
|
If the name is not bound in the context. |
populate
Instructions already in graph from the bound component.
populate(ctx: ISAContext) -> int
Parameters
| Name | Description |
|---|---|
|
ctx
Required
|
|
Returns
| Type | Description |
|---|---|
|
1, since bound component nodes start at index 1. |
Attributes
name
name: str