Keyword | CPC | PCC | Volume | Score | Length of keyword |
---|---|---|---|---|---|

density matrix qiskit | 0.38 | 0.6 | 9520 | 92 | 21 |

density | 0.46 | 0.7 | 4842 | 81 | 7 |

matrix | 1.84 | 0.1 | 7101 | 16 | 6 |

qiskit | 1.05 | 0.4 | 1556 | 19 | 6 |

Keyword | CPC | PCC | Volume | Score |
---|---|---|---|---|

density matrix qiskit | 1.85 | 0.7 | 4646 | 30 |

density matrix simulator qiskit | 0.39 | 0.3 | 6147 | 100 |

qiskit get density matrix | 1.97 | 0.6 | 7901 | 7 |

qiskit gate to matrix | 1.88 | 0.4 | 1685 | 81 |

qiskit matrix product state | 1.26 | 0.1 | 5420 | 17 |

density matrix theory and applications | 1.93 | 1 | 9329 | 72 |

density matrix theory and applications pdf | 0.43 | 1 | 4462 | 76 |

density matrix quantum mechanics | 0.17 | 1 | 2880 | 99 |

In Qiskit, we can easily extract the purity of a density matrix by using the purity () class method. For example, for the pure state |+⟩ | + ⟩, we should expect to see a purity of 1: And, for a mixed state, like ρm = 1 2|0⟩⟨0|+ 1 2|1⟩⟨1| ρ m = 1 2 | 0 ⟩ ⟨ 0 | + 1 2 | 1 ⟩ ⟨ 1 | , we expect a purity of less than 1:

A very useful property of the density matrix is that when taking the trace Tr Tr of its square ρ2 ρ 2, we obtain a scalar value γ γ that is good measure of the purity of the state the matrix represents. For normalized states, this value is always less than or equal to 1, with the equality occurring for the case of a pure state:

In Qiskit, state |ψCD⟩ | ψ C D ⟩ can be generated using the following circuit: Alternatively, we can express this state in terms of its density matrix ρCD = |ψCD⟩⟨ψCD|: ρ C D = | ψ C D ⟩ ⟨ ψ C D |: And now, we can find the density matrices for the corresponding subsystems C C and D D:

We previously learned that, by the use of the reduced density matrix, we can actually find a representation for each individual part that makes up a composite state, even if the state is entangled. For instance, let's look at the following partially-entangled state: