# flamingpy.utils.linalg¶

Helper functions for linear algebra used for testing LC equivalence.

Functions

 are_lc_equivalent(graph1, graph2[, ...]) Check if two EGraphs are LC equivalent, and return the Clifford operation if so. Convert a local Clifford gate on n qubits to a local Clifford gate on all n qubits. Convert a local Clifford gate on n qubits to a list of n single-qubit Cliffords. Build the constraint for LC-equivalence of two adjacency matrices. Return the nullspace basis of matrix M. reduce_RREform_mod2(M[, max_cols]) Put a binary matrix into row reduced echelon form modulo 2, up to a maximum number of columns given by max_cols. search_nullspace(basis) Check if the nullspace satisfies the determinant constraints.

Home

Background

Using FlamingPy

Development

Getting Help

Python API