sf.apps.data.sample.Mutag1¶
-
class
Mutag1
[source]¶ Bases:
strawberryfields.apps.data.sample.GraphDataset
Second graph of the MUTAG dataset.
The MUTAG dataset is from [2][3] and is available here.
Graph:
-
n_mean = 6
-
threshold = False
-
n_samples = 20000
-
modes = 13
Attributes
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
-
code/api/api/strawberryfields.apps.data.sample.Mutag1
Download Python script
Download Notebook
View on GitHub