You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Calculate time evolution using the master equation solver
239
239
# For a closed system without dissipation, this solves the Schrödinger equation
240
-
result = mesolve(H, psi0, tlist, [], ops['cavity_n'] + ops['atom_e'])
240
+
result = mesolve(H, psi0, tlist, [], e_ops=(ops['cavity_n'] + ops['atom_e']))
241
241
242
242
# Plot the results to visualize the dynamics
243
243
plt.figure(figsize=(12, 10))
@@ -375,6 +375,9 @@ plt.legend()
375
375
plt.grid(True)
376
376
plt.show()
377
377
```
378
+
For a finite-size system (especially a small 3-site system), the ground state preserves certain symmetries that cause the expectation value of the field operator (⟨a⟩) to be exactly zero, even across the phase transition. The photon number fluctuations (blue circles) still increase as expected, showing a precursor to the phase transition.
379
+
380
+
In larger systems (let's say extremely large), ⟨a⟩ would become non-zero in the superfluid phase, serving as a true order parameter. But in our small system, we need to look at other quantities (like photon number fluctuations) to see signatures of the transition.
0 commit comments