You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The t_complexity protocol can quickly use the call graph protocol to derive accurate t counts from subbloqs. This handles meta-bloqs like Adjoint correctly.
For bloqs where build_call_graph is implemented and correct -- the _t_complexity_ override should be removed. If "leaf values" are provided by the _t_complexity_ override, they should be moved to a unit test.
This is of extreme importance for the places where the _t_complexity_(self, adjoint: bool) method has been hacked to accept an adjoint parameter.
The text was updated successfully, but these errors were encountered:
The t_complexity protocol can quickly use the call graph protocol to derive accurate t counts from subbloqs. This handles meta-bloqs like
Adjoint
correctly.For bloqs where
build_call_graph
is implemented and correct -- the_t_complexity_
override should be removed. If "leaf values" are provided by the_t_complexity_
override, they should be moved to a unit test.This is of extreme importance for the places where the
_t_complexity_(self, adjoint: bool)
method has been hacked to accept anadjoint
parameter.The text was updated successfully, but these errors were encountered: