sf.apps.data.sample.MoleculeDataset¶
-
class
MoleculeDataset[source]¶ Bases:
strawberryfields.apps.data.sample.SampleDataset,abc.ABCClass for loading datasets of pre-generated samples from molecules.
-
w¶ normal mode frequencies of the electronic ground state (\(\mbox{cm}^{-1}\))
- Type
array
-
wp¶ normal mode frequencies of the electronic excited state (\(\mbox{cm}^{-1}\))
- Type
array
-
Ud¶ Duschinsky matrix
- Type
array
-
delta¶ Displacement vector, with entries \(\delta_i=\sqrt{\omega'_i/\hbar}d_i\), and \(d_i\) is the Duschinsky displacement
- Type
array
-
T¶ temperature (Kelvin)
- Type
float
Attributes
- rtype
bool
- rtype
float
- rtype
bool
-
T - Return type
bool
-
n_mean¶ - Return type
float
-
threshold¶ - Return type
bool
Methods
counts([axis])Count number of photons or clicks.
-
counts(axis=1)¶ Count number of photons or clicks.
Counts number of photons/clicks in each sample (
axis==1) or number of photons/clicks in each mode compounded over all samples (axis==0).- Parameters
axis (int) – axis to perform count
- Returns
counts from samples
- Return type
list
-