jTWA.visualization#

jTWA.visualization comprises all plotting functionality. Visualizations strongly depend on the physical scenario of interest and therefore no one-size-fits-all solution is possible. The provided code is therefore to be understood as a first step to simplify building more specialized visualizations.

jTWA.visualization.create_visuals(obs, cfg)#

create_visuals is a wrapper function to call other plotting functionality.

Args:
  • obs: The observables that are to be used for visualizations.

  • cfg: The dictionary that contains the settings of the current run, including the working directory.

jTWA.visualization.plot_spin_obs(obs, cfg)#

plot_spin_obs plots the total side- and zero-mode populations as well as the different momentum-mode populations.

Args:
  • obs: The observables that are to be used for visualizations.

  • cfg: The dictionary that contains the settings of the current run, including the working directory.

jTWA.visualization.plot_correlation_matrices(obs, cfg)#

plot_correlation_matrices plots correlation matrices of the two observables in obs["spin_obs"] at nine evenly distributed points in time. Currently this function assumes that obs["spin_obs"] only contains the observables \(S_x\) and \(Q_{yz}\).

Args:
  • obs: The observables that are to be used for visualizations.

  • cfg: The dictionary that contains the settings of the current run, including the working directory.

jTWA.visualization.animate(obs, cfg, fps=15)#

animate generates a video of the evolution of the Wigner distribution given by \(S_x\) and \(Q_{yz}\) over time.

Args:
  • obs: The observables that are to be used for visualizations.

  • cfg: The dictionary that contains the settings of the current run, including the working directory.

jTWA.visualization.plot_deviations(obs, cfg)#

plot_deviations plots sanity checks, making sure that conservations of particle number and energy are fulfilled.

Args:
  • obs: The observables that are to be used for visualizations.

  • cfg: The dictionary that contains the settings of the current run, including the working directory.