sf.apps.qchem.dynamics.sample_coherent

sample_coherent(alpha, t, Ul, w, n_samples, loss=0.0)[source]

Generate samples for simulating vibrational quantum dynamics with an input coherent state.

Example usage:

>>> alpha = [[0.3, 0.5], [1.4, 0.1]]
>>> t = 10.0
>>> Ul = np.array([[0.707106781, -0.707106781],
...                [0.707106781, 0.707106781]])
>>> w = np.array([3914.92, 3787.59])
>>> n_samples = 5
>>> sample_coherent(alpha, t, Ul, w, n_samples)
[[0, 2], [0, 1], [0, 3], [0, 2], [0, 1]]
Parameters
  • alpha (list[list[float]]) – list of displacement parameters given as [magnitudes, angles] for all modes

  • t (float) – time in femtoseconds

  • Ul (array) – normal-to-local transformation matrix

  • w (array) – normal mode frequencies \(\omega\) in units of \(\mbox{cm}^{-1}\)

  • n_samples (int) – number of samples to be generated

  • loss (float) – loss parameter denoting the fraction of lost photons

Returns

a list of samples

Return type

list[list[int]]