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 (2021). BlochSphere_Evolution_GW21 (https://www.mathworks.com/matlabcentral/fileexchange/90636-blochsphere_evolution_gw21), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!