⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rotop.m

📁 The goal of SPID is to provide the user with tools capable to simulate, preprocess, process and clas
💻 M
字号:
function output=rotop(spin_num,xy,angle);
    if xy=='x'
        phi=0;
    end
    if xy=='y'
        phi=90;
    end
    beta=angle;
    c=cos(1/2*beta*pi/180);
    s=sin(1/2*beta*pi/180);
    eplus=exp(+i*phi*pi/180);
    eminus=exp(-i*phi*pi/180);
    op=[c -i*s*eminus ; -i*s*eplus c];
    output=op;
    for n=1:(spin_num-1)
        output=kron(op,output);
    end 
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -