sf.apps.data.PHat

class PHat[source]

Bases: strawberryfields.apps.data.GraphDataset

Random graph created using the p-hat generator of [43].

This graph is the p_hat300-1 graph of the DIMACS dataset, which is a collection of large graphs with cliques that are hard to find. The best known clique of this 300-node graph is of size 8 and is composed of nodes: [53, 123, 180, 218, 246, 267, 270, 286]. This graph is not visualized due to its large size.

n_mean = 10
threshold = True
n_samples = 50000
modes = 300

n_mean

threshold

n_mean = 10
threshold = True

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