dq.plot.fock_evolution
fock_evolution(
states: ArrayLike,
*,
ax: Axes | None = None,
times: ArrayLike | None = None,
cmap: str = "Blues",
logscale: bool = False,
logvmin: float = 0.0001,
colorbar: bool = True,
allyticks: bool = False
)
Plot the photon number population of state as a function of time.
Warning
Documentation redaction in progress.
Examples
>>> n = 16
>>> a = dq.destroy(n)
>>> psi0 = dq.coherent(n, 0.0)
>>> H = 2.0 * (a + dq.dag(a))
>>> tsave = jnp.linspace(0, 1.0, 11)
>>> result = dq.sesolve(H, psi0, tsave)
>>> dq.plot.fock_evolution(result.states, times=tsave)
Use the log scale option to visualise low populations:
>>> dq.plot.fock_evolution(result.states, times=tsave, logscale=True)