qml.math.binary_select_basis¶
- binary_select_basis(bitstrings)[source]¶
Select bitstrings from an array of bitstrings that form a basis for the column space of the array. Also returns the bitstrings that were not selected.
- Parameters:
bitstrings (np.ndarray) – Input bitstrings. The columns of the array span the space for which a basis is selected.
- Returns:
Two binary arrays. The first contains a selection of columns from
bitstringsthat form a basis for the column space ofbitstringsover \(\mathbb{Z}_2\). The second contains all other columns.- Return type:
tuple[np.ndarray, np.ndarray]
Warning
This function is currently not compatible with JAX.
code/api/pennylane.math.binary_select_basis
Download Python script
Download Notebook
View on GitHub