EstimationTableEntry 클래스

의 단일 행입니다 EstimationTable.

각 항목은 애플리케이션 추적 및 아키텍처 ISA의 특정 조합에 대한 하나의 Pareto 최적 예측 결과를 나타냅니다.

생성자

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>)

매개 변수

Name Description
qubits
필수
runtime
필수
error
필수
source
필수
factories
Default value: <factory>
properties
Default value: <factory>

메서드

from_result

예측 결과 및 아키텍처 컨텍스트에서 항목을 만듭니다.

from_result

예측 결과 및 아키텍처 컨텍스트에서 항목을 만듭니다.

from_result(result: EstimationResult, ctx: ISAContext) -> EstimationTableEntry

매개 변수

Name 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