Response tensor binary#

Create response_tensor.pkl (response tensors of all magnetic point groups in terms of active multipoles).

python -m multipiegen.create_binary.create_response_tensor [–serial]

The data are taken from info.pkl (cartesian-multipole relation, LaTeX names) and group.pkl (active multipoles). See multipiegen/util/util_response_tensor.py.

create_response_tensor_group(mpg_id)[source]#

Response tensors of a magnetic point group.

Parameters:

mpg_id (str) – MPG id.

Returns:

(matrix, expression)} for X = Q, G, T, M.

Return type:

  • (dict) – {(X, rank, opt)

create_response_tensor(ids=None, serial=False, verbose=True)[source]#

Create response tensors (BinaryManager).

Parameters:
  • ids (list, optional) – MPG ids (all if None).

  • serial (bool, optional) – run in a single process ?

  • verbose (bool, optional) – verbose ?

Returns:

  • (BinaryManager) – response tensors.

save_response_tensor(serial=False)[source]#

Create and save response_tensor.pkl in multipiegen/binary.

Parameters:

serial (bool, optional) – run in a single process ?