EstimationTableEntry クラス
EstimationTable内の 1 行。
各エントリは、アプリケーション トレースとアーキテクチャ ISA の特定の組み合わせに対する 1 つのパレート最適推定結果を表します。
コンストラクター
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>)
パラメーター
| 名前 | 説明 |
|---|---|
|
qubits
必須
|
|
|
runtime
必須
|
|
|
error
必須
|
|
|
source
必須
|
|
|
factories
|
規定値: <factory>
|
|
properties
|
規定値: <factory>
|
メソッド
| from_result |
推定結果とアーキテクチャ コンテキストからエントリを作成します。 |
from_result
推定結果とアーキテクチャ コンテキストからエントリを作成します。
from_result(result: EstimationResult, ctx: ISAContext) -> EstimationTableEntry
パラメーター
| 名前 | 説明 |
|---|---|
|
result
必須
|
生の推定結果。 |
|
ctx
必須
|
推定に使用されるアーキテクチャ コンテキスト。 |
返品
| 型 | 説明 |
|---|---|
|
結果から入力された新しいテーブル エントリ。 |
属性
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