entvn.m
来自「计算冯。诺易曼熵的程序」· M 代码 · 共 14 行
M
14 行
function x = entVN(p)% ENTVN von-Neumann entropy% requires: nothing% author: Toby Cubitt%% ENTVN(RHO) gives the von-Neumann entropy of density matrix RHO% (note: this is NOT the entropy of the reduced density matrix)e = eig(p);x = -e'*log2(e+(e==0));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?