PaddlePaddle / Quantum

Other
567 stars 176 forks source link

Feat: plot_density_graph #20

Open Novebula opened 2 years ago

Novebula commented 2 years ago

【PaddlePaddle Hackathon】78 实现密度矩阵可视化 相关技术文档:https://github.com/StarringJgw/Quantum/blob/relating_documents/tech_document.md 项目单测文件:https://github.com/StarringJgw/Quantum/blob/relating_documents/graph_test.py

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

Quleaf commented 2 years ago

当测试文件中的矩阵维度为(4, 4)时,图片显示会有bug。 可以将图片直接显示出来,或者在函数中添加参数,用于确定是显示图片还是保存图片。 另外,在代码规范方面,可以参考 pep8 规范,在规范性上进一步提升。

kun-wang commented 2 years ago

一个可选方案是将密度矩阵转换为Pauli Transfer Matrix表达,然后只需要可视化一个(更大的)实数矩阵。