Site Tools


qutip-correlations

Table of Contents

Quantum correlations

Quantum correlations describe how measurements on different parts of a system are correlated. Beyond entanglement, correlations include classical correlations (knowable information) and quantum discord (information that's quantum-mechanical only).

Second-Order correlations

measures photon bunching (coherent light, ) vs antibunching (single photons, ).

from qutip import *
import numpy as np

# Cavity with decay
H = 1.0 * a.dag() * a  # Resonator energy
c_ops = [0.1 * a]       # Photon loss

times = np.linspace(0, 10, 100)
n0 = 5  # Initial photon number
rho0 = fock_dm(10, n0)

# Solve for expectation values
e_ops = [a.dag() * a, a.dag() * a.dag() * a * a]
result = mesolve(H, rho0, times, c_ops, e_ops)

n = result.expect[0]        # ⟨n⟩
n2 = result.expect[1]       # ⟨n²⟩
g2 = n2 / (n**2)            # g^(2)

Correlations reveal quantum dynamics. A decaying resonator shows bunching as photons leave; a driven system shows different correlations.

Higher-Order correlations

QuTiP can compute arbitrarily high-order correlations (, , etc.) by passing operators like to expectation value lists.

Correlations are measurable—they correspond to real experiments (intensity correlations in optics, spin correlations in spins). Use them to verify simulations against experiments.

qutip-correlations.md · Last modified: