spheres.utils.pauli_basis

spheres.utils.pauli_basis(n)[source]

Generates the Pauli basis for n qubits. Returns a dictionary associating a Pauli string (e.g., “IXY”) to the tensor product of the corresponding Pauli operators.

Parameters

n (int) – n qubits.

Returns

basis

Return type

dict