qat.frontend.fallthrough module
- class FallthroughFrontend(model=None)
Bases:
BaseFrontendA frontend that passes through an input
InstructionBuilderand does not modify it. Used in situations where a frontend is not required, but is used to make a pipeline complete.- Parameters:
model¶ (
Union[None,QuantumHardwareModel,PhysicalHardwareModel]) – The hardware model that holds calibrated information on the qubits on the QPU.
- check_and_return_source(src)
All source files are valid for the
FallthroughFrontend.
- emit(src, res_mgr=None, met_mgr=None, compiler_config=None)
Compiles an input
QatInputdown toQatIRand emits it. :type _sphinx_paramlinks_qat.frontend.fallthrough.FallthroughFrontend.emit.src:InstructionBuilder:param _sphinx_paramlinks_qat.frontend.fallthrough.FallthroughFrontend.emit.src: The high-level input. :type _sphinx_paramlinks_qat.frontend.fallthrough.FallthroughFrontend.emit.res_mgr:Optional[ResultManager] :param _sphinx_paramlinks_qat.frontend.fallthrough.FallthroughFrontend.emit.res_mgr: Collection of analysis results with caching and aggregationcapabilities, defaults to None.
- Parameters:
met_mgr¶ (
Optional[MetricsManager]) – Stores useful intermediary metrics that are generated during compilation, defaults to None.compiler_config¶ (
Optional[CompilerConfig]) – Compiler settings, defaults to None.
- Return type:
- Returns:
An intermediate representation as an
InstructionBuilderwhich holds a list of instructions to be executed on the QPU.