Skip to main content

Module bloch

Module bloch 

Source
Expand description

Bloch sphere visualization for multi-qubit states.

Provides single-qubit Bloch vector computation via partial trace and a Plotly JSON generator for an N-sphere grid.

Functionsยง

bloch_array_plotly_json
Returns a Plotly-JSON string for a grid of Bloch spheres, one per qubit.
bloch_vector_for_qubit
Compute the Bloch vector for a single qubit by partial-tracing the full state.