Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save BrianMartell/5a8b1b376c3446efe39bffa7d1aa19f4 to your computer and use it in GitHub Desktop.

Select an option

Save BrianMartell/5a8b1b376c3446efe39bffa7d1aa19f4 to your computer and use it in GitHub Desktop.
PUH-BrianMartell puh_quantum_coherence_photosynthesis_simulation.py-Updated New Py Code
import numpy as np
import matplotlib.pyplot as plt
# PUH v25: Quantum Coherence Photosynthesis Sim — Population Transfer Coherent vs Incoherent
t = np.linspace(0, 2000, 500) # Time fs arb. ~ps scale
coherent = np.sin(0.01 * t)**2 # Oscillatory coherent beating toy
incoherent = 1 - np.exp(-t / 500) # Slow exponential incoherent hop toy
plt.figure(figsize=(10,6))
plt.plot(t, coherent, label='Coherent Braid Ripple Surfing Fast Oscillatory', color='cyan', lw=2)
plt.plot(t, incoherent, '--', label='Incoherent Random Drag Slow Hopping', color='gold', lw=2)
plt.xlabel('Time (fs arb.)'); plt.ylabel('Reaction Center Population (arb.)')
plt.title('PUH v25: Quantum Coherence Photosynthesis Sim')
plt.legend(); plt.grid(alpha=0.3)
plt.tight_layout()
plt.savefig('puh_quantum_coherence_photosynthesis_simulation.png', dpi=300)
plt.show()
print("Coherent fast oscillatory beating, incoherent slow exponential — braid phase-locked efficiency.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment