Given a state in bra-ket notation as $|\psi\rangle=\frac{1}{\sqrt{3}}(|001\rangle+|010\rangle+|100\rangle)$. What is the density matrix of this state written using Pauli's spin operator?


1 Answer 1


We can get the density matrix $\rho$ for a pure state $|\psi\rangle$ using


And to write $\rho$ using the Pauli basis $\left\{ P_i \right\}$,

$$\rho = \sum_{i=0}^N \rho_i P_i$$

we use the fact that $\rho_i = \text{tr} \left( \rho P_i \right)$

See the answers of this question for more details.

Note: we can easily represent a quantum state in Pauli basis using Qiskit as follows:

from qiskit.quantum_info import DensityMatrix, Statevector, SparsePauliOp

psi = Statevector([0, 1, 1, 0, 1, 0, 0, 0])
rho = DensityMatrix(psi)

pauli_op = SparsePauliOp.from_operator(rho)
  • $\begingroup$ Sir kindly give me the full detailed solution of my state. $\endgroup$ Nov 21, 2023 at 6:45
  • $\begingroup$ I downvoted this because it doesn't really answer the question. $\endgroup$
    – forky40
    Nov 21, 2023 at 11:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.