qp.transforms.DecompGraphInspector¶
- class DecompGraphInspector(decomp_graph, solution)[source]¶
Bases:
objectInteractive object that queries a solved decomposition graph.
See also
See the documentation for the
decomp_inspector()transform for how this object is used.Methods
inspect_decomps(op, *[, num_work_wires, ...])Display all decomposition rules considered for a given operator.
- inspect_decomps(op, *, num_work_wires=0, show_not_applicable=True)[source]¶
Display all decomposition rules considered for a given operator.
- Parameters:
op (Operator) – the operator instance to inspect the decomposition rules for.
num_work_wires (int, optional) – the number of work wires available for dynamic allocation.
show_not_applicable (bool) – if True (the default), all decomposition rules, including those that are not applicable to the specific operator instance (e.g., due to constraints on the number of wires), are displayed.
- Returns:
a displayable object with all the information.
- Return type:
_DecompInGraphInfoCollection