spheres.utils.qubits_xyz

spheres.utils.qubits_xyz(state)[source]

Returns XYZ expectation values for each qubit in a tensor product.

Parameters

state (qt.Qobj) – Tensor state of qubits.

Returns

xyz – Array of xyz coordinates.

Return type

np.array