paulie.classifier.classification.Morph#
- class paulie.classifier.classification.Morph(legs, dependents)#
Bases:
objectStores the structural data of a canonical graph.
- counts()#
Get counts of length 1 legs, length 2 legs, and number of vertices on the longest leg.
- Returns:
Counts of length 1 legs, length 2 legs, and number of vertices on the longest leg.
- Return type:
- Raises:
ClassificationException – If the graph is of non-canonical type.
- gen_generators()#
Generate generators.
- Yields:
List of generators.
- gen_independent_pair()#
Generate all independent pairs of Pauli strings in the transformed generating set.
- Yields:
All independent pairs of Pauli strings in the canonical graph.
- gen_pq()#
Generate products of all pairs of Pauli strings in the canonical graph.
- Yields:
Dictionary of v (PauliString): Vertex of graph. w (PauliString): Other vertex of graph. vw (PauliString): Proportional product of v and w. neighbour: True if v and w are neighbours.
- get_algebra_properties()#
Get the properties of the algebra.
If the algebra is
\[\bigoplus_{i=1}^{n}\mathfrak{a}(m)\]Then the tuple \(\{\mathfrak{a},n,m\}\) is returned.
- Returns:
Tuple of type of algebra, number of copies of the algebra, and the size of the algebra.
- Return type:
- get_dependents()#
Get a list of dependent Pauli strings.
- Returns:
List of dependent Pauli strings.
- Return type:
- get_legs()#
Get list of legs.
- Returns:
List of legs.
- Return type:
- get_properties()#
Get the properties of the graph including its type.
- get_vertices()#
Get a list of vertices in the graph.
- Returns:
List of vertices in the graph.
- Return type: