def qubit_to_bloch(psi: np.ndarray): """Compute Bloch spere coordinates from 2x1 state vector/qubit.""" return density_to_cartesian(psi.density())