Common (paulie.common)#

Graph drawing#

Graph visualization utilities.

get_graph.get_graph(generators[, ...])

Get the anticommutation graph.

Pauli string expressions#

Utilities for generating and manipulating Pauli string expressions.

pauli_string_bitarray.PauliString([n, ...])

Representation of a Pauli string as a bitarray.

pauli_string_collection.PauliStringCollection([...])

Class for a collection of Pauli strings with various features.

pauli_string_collection.PauliStringCollectionException

Exception for the Pauli string collection class.

pauli_string_factory.gen_k_local(n, p[, used])

Generates k-local Pauli strings.

pauli_string_factory.gen_k_local_generators(n, ...)

Generates k-local operators for a set of generators.

pauli_string_factory.get_identity(n)

Get an identity of a given length.

pauli_string_factory.get_last(n)

Get a Pauli string with Y at all positions of a given length.

pauli_string_factory.get_pauli_string(o[, n])

Get Pauli strings in their current representation.

pauli_string_factory.get_single(n, i, label)

Get a Pauli string with a single value at position.

pauli_string_linear.PauliStringLinear(...)

Representation of a linear combination of Pauli string.

pauli_string_linear.PauliStringLinearException

Exception for the linear combination of Pauli strings class.

pauli_string_parser.pauli_string_parser(...)

Parse a compact Pauli string representation and return the expanded form.

random_pauli_strings.get_random(n)

Get random Pauli string of length n.

random_pauli_strings.get_random_k_local(k, n)

Get random k-local Pauli string of length n.

random_pauli_strings.get_random_list(n, size)

Get list of random Pauli strings of length n.

two_local_generators.get_lie_algebra(name)

Get the generators of a Lie algebra by name.

two_local_generators.get_lie_algebras()

Get the dictionary of generators of Lie algebras.

two_local_generators.two_local_algebras(n)

Get a dictionary of the dynamical Lie algebras with Pauli strings of length at least 3.