problems.n_minus_1.quantum_annealing.datasets

Some example datasets.

tno.quantum.problems.n_minus_1.quantum_annealing.datasets.load_dataset(name)[source]

Load the small or medium sized dataset.

Parameters:

name (str) – Name of the dataset. Choose from "small or "medium".

Return type:

Graph

Returns:

Networkx Graph representation of the dataset.

tno.quantum.problems.n_minus_1.quantum_annealing.datasets.load_medium_dataset()[source]

Load a medium sized dataset with 2380 nodes and 2507 edges.

Return type:

Graph

Returns:

Networkx Graph representation of the dataset.

tno.quantum.problems.n_minus_1.quantum_annealing.datasets.load_small_dataset()[source]

Load a small sized dataset with 7 nodes and 8 edges.

Return type:

Graph

Returns:

Networkx Graph representation of the dataset.