to_physicist_ordering#
- to_physicist_ordering(two_body_tensor, *, index_order=None)[ソース]#
Convert a two-body tensor to physicists』 index order.
Converts the rank-four tensor two-body tensor representing two-body integrals from chemists』, or intermediate, index order to physicists』 index order:
i,j,k,l -> i,l,j,k
- パラメータ:
- 戻り値:
The same rank-four tensor, now in physicists』 index order.
- 例外:
QiskitNatureError – when an unknown index type is encountered.
- 戻り値の型:
ndarray | SparseArray