to_chemist_ordering#
- to_chemist_ordering(two_body_tensor, *, index_order=None)[fuente]#
Convert a two-body tensor to chemists” index order.
Coverts the rank-four tensor two-body tensor representing two-body integrals from physicists”, or intermediate, index order to chemists” index order:
i,j,k,l -> i,l,j,k
- Parámetros:
- Devuelve:
The same rank-four tensor, now in chemists” index order.
- Muestra:
QiskitNatureError – when an unknown index type is encountered.
- Tipo del valor devuelto:
ndarray | SparseArray