get_bloq_callee_counts#

Get the direct callees of a bloq and the number of times they are called.

This calls bloq.build_call_graph() with the correct configuration options.

bloq

The bloq.

generalizer

If provided, run this function on each callee to consolidate attributes that do not affect resource estimates. If the callable returns None, the bloq is omitted from the counts graph. If a sequence of generalizers is provided, each generalizer will be run in order.

ssa

A sympy symbol allocator that can be provided if one already exists in your computation.

ignore_decomp_failure

If set to True, failing to find callees will be returned as an empty list. Otherwise, raise the DecomposeNotImplementedError or DecomposeTypeError causing the failure.