Site Tools


qutip-entanglement

Table of Contents

Entanglement measures

Entanglement quantifies quantum correlations—whether a state is separable (product of individual states) or genuinely multi-body. QuTiP provides entanglement entropy, concurrence, and related measures.

Entanglement entropy

Entanglement entropy measures how much entropy is in a reduced state: . For a pure state, if subsystem A is maximally entangled with the rest, (maximal).

from qutip import *

# Bell state: maximally entangled
psi = (tensor(basis(2, 0), basis(2, 0)) + 
       tensor(basis(2, 1), basis(2, 1))).unit()
rho = psi * psi.dag()

# Entanglement entropy of qubit 0
rho_0 = ptrace(rho, 0)
ent = entropy_vn(rho_0)
print(ent)  # 1.0 bit (maximal for 2-level)

# Separable state (product): zero entanglement
psi_sep = tensor(basis(2, 0), basis(2, 0))
rho_sep = psi_sep * psi_sep.dag()
rho_0_sep = ptrace(rho_sep, 0)
print(entropy_vn(rho_0_sep))  # 0.0 (no entanglement)

Concurrence

Concurrence measures entanglement of two-qubit states: . For a Bell state, (maximally entangled); for separable states, .

C = concurrence(rho)
print(C)  # 1.0 for Bell state, 0 for product state

Entanglement is a resource for quantum advantage. Quantifying it is essential for understanding quantum simulations.

qutip-entanglement.md · Last modified: