image thumbnail

BlochSphere_Evoluti​on_GW21

version 1.0.0 (1.73 KB) by Guoqing Wang
This function plots a Bloch sphere, visualizes a series of qubit states, and returns the figure handle and the xyz coordinates.

14 Downloads

Updated 17 Apr 2021

View License

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.

Cite As

Guoqing Wang (2021). BlochSphere_Evolution_GW21 (https://www.mathworks.com/matlabcentral/fileexchange/90636-blochsphere_evolution_gw21), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!