EstimationTableEntry Class
A single row in an EstimationTable.
Each entry represents one Pareto-optimal estimation result for a particular combination of application trace and architecture ISA.
Constructor
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>)
Parameters
| Name | Description |
|---|---|
|
qubits
Required
|
|
|
runtime
Required
|
|
|
error
Required
|
|
|
source
Required
|
|
|
factories
|
Default value: <factory>
|
|
properties
|
Default value: <factory>
|
Methods
| from_result |
Create an entry from an estimation result and architecture context. |
from_result
Create an entry from an estimation result and architecture context.
from_result(result: EstimationResult, ctx: ISAContext) -> EstimationTableEntry
Parameters
| Name | Description |
|---|---|
|
result
Required
|
The raw estimation result. |
|
ctx
Required
|
The architecture context used for the estimation. |
Returns
| Type | Description |
|---|---|
|
A new table entry populated from the result. |
Attributes
error
Total estimated error probability.
error: float
factories
A mapping from instruction id to the
FactoryResult describing the magic-state factory used
and the number of copies required.
factories: dict[int, FactoryResult]
properties
Additional key-value properties attached to the estimation result.
properties: dict[int, int | float | bool | str]
qubits
Total number of physical qubits required.
qubits: int
runtime
Total runtime of the algorithm in nanoseconds.
runtime: int
source
The instruction source derived from the architecture ISA used for this estimation.
source: InstructionSource