BlockLDUDecompose
QuICT.qcda.optimization.cnot_without_ancilla.block_ldu_decompose ¶
BlockLDUDecompose ¶
remapping_select
classmethod
¶
Select some rows out of a square matrix to get a full-ranked sub-matrix.
Parameters:
-
mat_(ndarray) –Boolean matrix to be decomposed
Returns:
-
List[int]–List[int]: Row reordering args. The remapping ensures that if selected rows are in the upper part before selecting, their locations won't be changed.
Source code in QuICT/qcda/optimization/cnot_without_ancilla/block_ldu_decompose.py
run
classmethod
¶
Block LDU decomposition of a boolean matrix.
Parameters:
-
mat_(ndarray) –Boolean matrix to be decomposed
Returns:
-
Tuple[ndarray, ndarray, ndarray, List[int]]–Tuple[np.ndarray, np.ndarray, np.ndarray, List[int]]: Decomposed L, D, U and row remapping.