qat.quops.math_util.convert_pauli_vec_to_density_mat

qat.quops.math_util.convert_pauli_vec_to_density_mat(pauli_vec)

Convert density matrix vectorized and written in Pauli basis to density matrix in computational basis

Parameters

pauli_vec (1D np.ndarray) – the 4^nqbits vector

Returns

the 2^nqbits x 2^nqbits density matrix

Return type

np.ndarray