Overview
The QC framework provides comprehensive entanglement analysis tools for quantum states. These features enable characterization of non-classical correlations essential for quantum algorithms and molecular simulations.Entanglement analysis is integrated throughout the framework, from basic Bell states to complex molecular ground states.
Shannon Entropy Measurement
Definition
For a quantum state |ψ⟩ = Σₖ αₖ|k⟩, the Shannon entropy quantifies information content: Where P(k) = |αₖ|² are measurement probabilities.Interpretation
| Entropy (bits) | State Type | Example |
|---|---|---|
| 0 | Pure product state | |00⟩ |
| 1 | Maximally entangled (2 qubits) | (|00⟩+|11⟩)/√2 |
| n | Uniform superposition | QFT on n qubits |
Why Bits?
Why Bits?
Shannon entropy uses log₂, measuring information in bits:
- 1 bit = binary choice (0 or 1)
- n bits = 2ⁿ distinguishable states
- Maximum entropy for n qubits = n bits (uniform distribution over 2ⁿ states)
Entangled State Preparation
Bell States
The four maximally entangled two-qubit states:Bell states: P(|00>) = 0.5000, P(|11>) = 0.5000, entropy = 1.0000 bits.All three backends (Hamiltonian, Schrödinger, Dirac) produce identical results.
GHZ States
Greenberger-Horne-Zeilinger states extend Bell entanglement to n qubits:GHZ states: P(|000>) = 0.5000, P(|111>) = 0.5000, entropy = 1.0000 bits.
GHZ vs W States
GHZ vs W States
Both are n-qubit entangled states, but with different properties:GHZ State: Maximum correlation, fragile to loss
- Losing 1 qubit → fully separable
- Used for: distributed quantum computing, quantum secret sharing
- Losing 1 qubit → remaining n-1 still entangled
- Used for: quantum networking, robust communication
Entanglement Entropy
For bipartite splits of an n-qubit system, entanglement entropy measures quantum correlations between subsystems.Von Neumann Entropy
Given a cut dividing qubits into regions A and B: Where ρ_A = Tr_B(|ψ⟩⟨ψ|) is the reduced density matrix.MPS Implementation
Fromtopological_hilbert_compression2.py:335-348:
Scaling Laws
| System | Max Entropy | Scaling |
|---|---|---|
| Product state | 0 | - |
| Bell state | 1 bit | - |
| GHZ state | 1 bit | constant |
| Critical 1D | log(L) | logarithmic |
| Generic | min(n_A, n_B) | volume law |
Entangled Hydrogen Visualization
Concept
Fromentangled_hydrogen.py, quantum entanglement is visualized through correlated hydrogen orbitals:
Features (from entangled_hydrogen.py:361-405)
Monte Carlo Sampling
Monte Carlo Sampling
Entangled orbitals are sampled using rejection sampling:
- Sample from joint probability distribution
- Accept points according to wavefunction amplitude
- Create 3D visualization colored by phase and orbital
Visualization Components
Visualization Components
From
entangled_hydrogen.py:408-566, the visualizer creates:- 3D scatter plot: Electron positions colored by phase and orbital
- XY projection: Top view density map
- XZ projection: Side view density map
- Statistics panel: Entropy, particle counts, radial distributions
Entropy Evolution Tracking
Phase Coherence Tests
From README.md:746-780, the framework includes 22 phase coherence tests:Molecular VQE Entropy
From README.md:266, H₂ VQE tracks entropy during optimization:Implementation: Measurement Result
Fromquantum_computer.py, every measurement includes entropy:
Experimental Validation
Backend Agreement (README.md:246-267)
All three neural backends produce identical entanglement signatures:| Test | Expected | Hamiltonian | Schrödinger | Dirac |
|---|---|---|---|---|
| Bell entropy | 1.0 | 1.0000 | 1.0000 | 1.0000 |
| GHZ entropy | 1.0 | 1.0000 | 1.0000 | 1.0000 |
| QFT-3 entropy | 3.0 | 3.0000 | 3.0000 | 3.0000 |
| Grover entropy | 0.4595 | 0.4595 | 0.4595 | 0.4595 |
Perfect agreement to 4 decimal places
Molecular Entanglement (README.md:265-266)
Molecular hydrogen VQE: E = -1.13730604 Ha, matching FCI to within 1.31e-11 Ha. Correlation energy recovered: 100.0%.Ground state entanglement correctly captured by UCCSD ansatz.
Advanced Features
GHZ Multi-Orbital States
Fromentangled_hydrogen.py:672-743:
Relativistic Entanglement
Fromentangled_hydrogen.py:793-850, Dirac spinors enable relativistic entanglement:
Usage Examples
Basic Entanglement Measurement
Full Analysis Pipeline
Related Topics
Topology
Topological entanglement entropy
QED
Entanglement in field states
References
- README.md experimental logs: lines 246-267, 746-780
- Implementation:
entangled_hydrogen.py - Phase coherence tests: lines 743-780
- Nielsen & Chuang, “Quantum Computation and Quantum Information”, Chapter 2
For production entanglement analysis, use the built-in
entropy() method on MeasurementResult objects. All backends preserve entanglement structure exactly.