app.enricher.utils ================== .. py:module:: app.enricher.utils .. autoapi-nested-parse:: Utils for generating implementations for a :class:`~app.model.CompileRequest.Node` in an :class:`~app.enricher.EnricherStrategy`. Module Contents --------------- .. py:function:: implementation(node: app.model.CompileRequest.Node, statements: list[openqasm3.ast.Statement | openqasm3.ast.Pragma]) -> app.enricher.ParsedImplementationNode Creates an :class:`~app.model.CompileRequest.ImplementationNode` from partial syntax tree. :param node: Node that should be enriched :param statements: Implementation as list of :class:`openqasm3.ast.Statement` .. py:function:: leqo_input(name: str, index: int, size: int | None) -> openqasm3.ast.QubitDeclaration Creates a qubit input declaration. :param name: Identifier of the input declaration :param index: Index of the input :param size: Size of the input (in qubits) .. py:function:: leqo_output(name: str, index: int, value: openqasm3.ast.Concatenation | openqasm3.ast.Identifier) -> openqasm3.ast.AliasStatement Creates an output declaration. :param name: Identifier of the output declaration :param index: Index of the output :param value: Openqasm3 construct that should be the output