ISARefNode 類別

指列舉語境中綁定的 ISA。

這個節點會從上下文中查詢綁定,並產生綁定的 ISA。

建構函式

ISARefNode(name: str)

參數

名稱 Description
name
必要

參考綁定的ISA名稱。

方法

enumerate

從上下文中得到綁定的指令集。

populate

指令已經從綁定分量的圖形中出現。

enumerate

從上下文中得到綁定的指令集。

enumerate(ctx: ISAContext) -> Generator[ISA, None, None]

參數

名稱 Description
ctx
必要
<xref:qdk.qre.Context>

包含綁定的列舉上下文。

例外狀況

類型 Description

如果名稱不符合上下文。

populate

指令已經從綁定分量的圖形中出現。

populate(ctx: ISAContext) -> int

參數

名稱 Description
ctx
必要

傳回

類型 Description
int

1,因為綁定的分量節點從索引 1 開始。

屬性

name

name: str