class mentpy.utils.FlowSpace

The flow space graph of a MBQCircuit.

Each node corresponds to a possible graph over n_qubits qubits. Each edge between nodes represent going from one graph to another via adding or removing edges.

n_qubits : int

The number of qubits in the graph state.

input_nodes : list

The input nodes of the graph state.

output_nodes : list

The output nodes of the graph state.

note: : ..

flow_space() will only work for MBQCircuit with less:

qubits. : than 8


FlowSpace(n_qubits, input_nodes, output_nodes, ...)

Creates the flow graph space of a graph state circuit.

String representation

__repr__() str

Returns the representation of the flow space