netqasm.util.states

netqasm.util.states.bloch_sphere_rep(mat)

Computes polar coordinates in Bloch sphere given a single-qubit density matrix

Parameters

mat (numpy.ndarray) – The single-qubit density matrix

Returns

tuple

Return type

(theta, phi, r)