qat.runtime.passes.analysis module
- class CalibrationAnalysis
Bases:
AnalysisPass
- run(ir, res_mgr, *args, compiler_config, **kwargs)
- class CalibrationAnalysisResult(calibration_executables=<factory>)
Bases:
ResultInfoMixin
-
calibration_executables:
List
[CalibrationWithArgs
]
-
calibration_executables:
- class IndexMappingAnalysis(model)
Bases:
AnalysisPass
Determines a mapping from classical bit registers to qubits.
Searches through the acquires of the package and determines their associated qubit. Also looks for classical registers of the form
<clreg_name>[<clreg_index>]
.Supports both
Executable
packages andInstructionBuilder
.- Parameters:
model¶ (
QuantumHardwareModel
) – The hardware model is needed for the qubit mapping.
- run(acquisitions, res_mgr, *args, package, **kwargs)
- Parameters:
acquisitions¶ (
Dict
[str
,any
]) – The dictionary of results acquired from the target machine.res_mgr¶ (
ResultManager
) – The results manager to save the mapping.package¶ (
Union
[InstructionBuilder
,Executable
]) – The executable program containing the results-processing information should be passed as a keyword argument.
- static var_to_physical_channel_executable(package)
- Return type:
Dict
[str
,str
]
- static var_to_physical_channel_qat_ir(package)
- Return type:
Dict
[str
,str
]
- var_to_qubit_map(mapping)
- class IndexMappingResult(mapping)
Bases:
ResultInfoMixin
-
mapping:
Dict
[str
,int
]
-
mapping: