Quantum Gate Visualisation

版本 1.0.0 (4.8 KB) 作者: Duncan Barclay
A few tools to help with the visualization of quantum gates and Bloch vectors
75.0 次下载
更新时间 2022/3/25

查看许可证

Based on this contribution, these few files helps understand the Pauli rotations/unitary matrices used in the gates of quantum computing.
The traceGate function is the most useful - call it without arguments for a short animation of the identity HZH |0> = X|0>.
% A bunch of primatives to use
ket0 = [1; 0], ket1 = [0; 1]
bra0 = ket0', bra1 = ket1'
I = eye(2)
X = [0 1; 1 0], Y = [0 -1j; 1j 0], Z = [1 0; 0 -1]
H = 1/sqrt(2)*hadamard(2)
S = [1 0; 0 1j]
T = [1 0; 0 exp(1j*pi/4)]

引用格式

Duncan Barclay (2024). Quantum Gate Visualisation (https://www.mathworks.com/matlabcentral/fileexchange/108689-quantum-gate-visualisation), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2022a
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签
致谢

参考作品: Quantum Computing

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0