flamingpy.utils.linalg.search_nullspace¶
- flamingpy.utils.linalg.search_nullspace(basis)[source]¶
Check if the nullspace satisfies the determinant constraints.
Search through sums of pairs of basis vectors of the nullspace and see if any satisfy the determinant constraints. If no solution is found, output None. If a solution is found, return a vector specifying the local Clifford in the form:
(a_1, a_2, …, a_n, b_1, b_2, …, b_n, c_1, c_2, …, c_n, d_1, d_2, …, d_n),
where n is the number of nodes of the graph.
- Parameters
basis (numpy.array) – an array whose rows are basis vectors of the nullspace
- Returns
None if no solution, or the solution array.
- Return type
NoneType or numpy.array
source/api/flamingpy.utils.linalg.search_nullspace
Download Python script
Download Notebook
View on GitHub