-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from gsq7474741/master
【PaddlePaddle Hackathon】78 实现密度矩阵可视化
- Loading branch information
Showing
3 changed files
with
80 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
通过在UAnsatz类中添加新的成员函数expand来实现扩展 | ||
- 通过在UAnsatz类中添加新的成员函数expand来实现扩展 | ||
|
||
|
||
- 增加utils.plot_density_graph密度矩阵可视化工具。 | ||
``` | ||
Args: | ||
density_matrix (numpy.ndarray or paddle.Tensor): 多量子比特的量子态的状态向量或者密度矩阵,要求量子数大于1 | ||
size (float): 条宽度,在0到1之间,默认0.3 | ||
Returns: | ||
plt.Figure: 对应的密度矩阵可视化3D直方图 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters