spheres.utils.to_pauli_basis

spheres.utils.to_pauli_basis(qobj, basis=None)[source]

Expands a state/operator in the Pauli basis. Returns a dictionary associating a Pauli string to the corresponding component.

Parameters

qobj (qt.Qobj) – State/operator

Returns

coeffs

Return type

dict