app.enricher.gates ================== .. py:module:: app.enricher.gates .. autoapi-nested-parse:: Provides enricher strategy for gate nodes * :class:`~app.model.CompileRequest.GateNode` * :class:`~app.model.CompileRequest.ParameterizedGateNode` Module Contents --------------- .. py:function:: enrich_gate(node: app.model.CompileRequest.Node, constraints: app.enricher.Constraints | None, gate_name: str, input_count: int, *arguments: openqasm3.ast.Expression) -> app.enricher.EnrichmentResult Generate implementation for gate nodes. :param node: Node that defined the gate. (Used as context for errors etc.) :param constraints: Constraints that should be applied. :param gate_name: Name of the gate to generate. :param input_count: Count of expected inputs. :param arguments: Optional arguments passed to the gate. :return: Final enrichment result. .. py:class:: GateEnricherStrategy Enricher strategy capable of enriching gate nodes.