-
Notifications
You must be signed in to change notification settings - Fork 87
Tensor timing report card #1362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tensor timing report card #1362
Conversation
Number of bloq examples consideredprint(len(df))Number of bloq examples successfully flattenedprint(len(df[df['flat_dur'] > 0]))Number of bloq examples with tensorsprint(len(df[df['width'] > 0]))Bloqs that are tensor simulableprint(len(df[df['width'] <= 25]))
df[df['width'] <= 25]
120 rows × 7 columns Bloqs whose tensor network is too bigdf[df['width'] > 25].sort_values(by='width')
Bloqs without tensorsDue to errors encountered in flattening or if the bloq's callees don't support tensor simulation. df[df['width'].isna()]
147 rows × 7 columns Slowest to flattenWithin the overall timeout df.sort_values(by='flat_dur', ascending=False).head()
Flattening is the rate-limiting step.For bloqs that have been successfully flattened, the maximum tensor-network-construction and tensor-contraction-ordering durations are less than 0.5s. Note: the contraction finding code uses the fast, naive approach. One can choose more expensive approaches where the contraciton-ordering-finding is more expensive. # Slowest tn_dur
df.sort_values(by='tn_dur', ascending=False).head()
# Slowest width_dur
df.sort_values(by='width_dur', ascending=False).head()
|
Not all bloq examples support tensor simulation. This report card automatically determines which bloq examples should be tensor simulable.