This function plots a Bloch sphere, visualizes a series of qubit states, and returns the figure handle and the xyz coordinates. Two input choices are provided: (1) 2-by-N complex numbers, which is the typical way people utilize to represent a qubit; (2) 3-by-N real numbers, which is the cartesian xyz coordinates for visualizing in a 3D unit-one sphere. This function also provides choice to plot the states in a provided figure (2nd input variable). Note that the input variable "state" should be unit cell type and each cell should be either 2-by-N or 3-by-N vectors.
引用格式
Guoqing Wang (2024). BlochSphere_Evolution_GW21 (https://www.mathworks.com/matlabcentral/fileexchange/90636-blochsphere_evolution_gw21), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |