bloqade.analog.emulate.sparse_operator.IndexMapping
← Module overview
class
property
sourcemethod
sourcemethod
method
sourcemethod
source
classIndexMapping¶source
bloqade.analog.emulate.sparse_operator.IndexMapping
Signature
class IndexMapping(n_row: int, row_indices: Union[NDArray, slice], col_indices: Union[NDArray, slice])Parameters
| Name | Type | Description |
|---|---|---|
n_row | int | |
row_indices | Union[NDArray, slice] | |
col_indices | Union[NDArray, slice] |
Attributes
| Name | Type | Description |
|---|---|---|
n_row | int | |
row_indices | Union[NDArray, slice] | |
col_indices | Union[NDArray, slice] |
propertyT¶source
bloqade.analog.emulate.sparse_operator.IndexMapping.T
T: IndexMappingmethodmatvec¶source
bloqade.analog.emulate.sparse_operator.IndexMapping.matvec
def matvec(other, out=None, scale=1)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
other | — | required | |
out | — | None | |
scale | — | 1 |
methodtocoo¶source
bloqade.analog.emulate.sparse_operator.IndexMapping.tocoo
methodtocsc¶source
bloqade.analog.emulate.sparse_operator.IndexMapping.tocsc
def tocsc()methodtocsr¶source
bloqade.analog.emulate.sparse_operator.IndexMapping.tocsr
def tocsr()