tensorflow/quantum

[Performance] Boost tfq.convert_to_tensor speed

Open

#336 创建于 2020年8月10日

在 GitHub 查看
 (11 评论) (0 反应) (0 负责人)Python (653 fork)github user discovery
area/performancegood first issuehelp wantedkind/feature-requestskill-level/intermediate

仓库指标

Star
 (2,145 star)
PR 合并指标
 (PR 指标待抓取)

描述

Currently tfq.convert_to_tensor uses just one core and makes use of Cirq serialization protocols. They are pretty slow for large circuits. A quick benchmark shows that more than 95% of all time spent computing in tfq.convert_to_tensor is spent in the cirq serialization logic and the protobuf SerializeToString function. Since it's unlikely we can speed either of those up quickly, perhaps we should look into parallelization of tfq.convert_to_tensor ?

贡献者指南