classify_t_count_by_bloq_type#

Classify (bin) the T count of a bloq’s call graph by type of operation.

bloq

the bloq to classify.

bloq_classification

An optional dictionary mapping bloq_classifications to bloq types.

generalizer

If provided, run this function on each (sub)bloq to replace attributes that do not affect resource estimates with generic sympy symbols. If the function returns None, the bloq is omitted from the counts graph. If a sequence of generalizers is provided, each generalizer will be run in order.

Returns classified_bloqs: dictionary containing the T count for different types of bloqs.