EstimationTableEntry 類別
EstimationTable一個 .
每個項目代表特定應用追蹤與架構 ISA 組合的一個帕累托最佳估計結果。
建構函式
EstimationTableEntry(qubits: int, runtime: int, error: float, source: ~qdk.qre._instruction.InstructionSource, factories: dict[int, FactoryResult] = <factory>, properties: dict[int, int | float | bool | str] = <factory>)
參數
| 名稱 | Description |
|---|---|
|
qubits
必要
|
|
|
runtime
必要
|
|
|
error
必要
|
|
|
source
必要
|
|
|
factories
|
預設值: <factory>
|
|
properties
|
預設值: <factory>
|
方法
| from_result |
從估計結果與架構上下文建立一條條目。 |
from_result
從估計結果與架構上下文建立一條條目。
from_result(result: EstimationResult, ctx: ISAContext) -> EstimationTableEntry
參數
| 名稱 | Description |
|---|---|
|
result
必要
|
原始估計結果。 |
|
ctx
必要
|
用於估算的架構上下文。 |
傳回
| 類型 | Description |
|---|---|
|
從結果中生成新的表格條目。 |
屬性
error
總估計錯誤機率。
error: float
factories
從指令 ID 映射到描述所使用的魔幻狀態工廠及所需副本數量的映射 FactoryResult 。
factories: dict[int, FactoryResult]
properties
附加於估計結果的鍵值屬性。
properties: dict[int, int | float | bool | str]
qubits
所需物理量子位元總數。
qubits: int
runtime
演算法的總運行時間以奈秒計。
runtime: int
source
指令來源源自ISA用於此估計的架構。
source: InstructionSource