spheres.utils.components

spheres.utils.components(q)[source]

Extracts components of qt.Qobj, whether bra or ket, as a numpy array.

Parameters

q (qt.Qobj) – Qutip state.

Returns

n – Numpy array.

Return type

np.array