to_physicist_ordering#

to_physicist_ordering(two_body_tensor, *, index_order=None)[source]#

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

প্যারামিটার:
  • two_body_tensor (ndarray | SparseArray) -- the rank-four tensor to be converted.

  • index_order (IndexType | None) -- when supplied this will hard-code the IndexType value. If None (the default), the index_order will be determined automatically based on the symmetries of the two_body_tensor.

রিটার্নস:

The same rank-four tensor, now in physicists' index order.

রেইজেস:

QiskitNatureError -- when an unknown index type is encountered.

রিটার্ন টাইপ:

ndarray | SparseArray