Feat: plot_density_graph
【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
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
当测试文件中的矩阵维度为(4, 4)时,图片显示会有bug。
可以将图片直接显示出来,或者在函数中添加参数,用于确定是显示图片还是保存图片。
另外,在代码规范方面,可以参考 pep8 规范,在规范性上进一步提升。
一个可选方案是将密度矩阵转换为Pauli Transfer Matrix表达,然后只需要可视化一个(更大的)实数矩阵。