class trainsum.trainsum.LinearMap(eq, *ops, optimizer='greedy')

Linear map of qunatics tensor trains defined by an einsum expression. It serves as input to the EigSolver and LinSolver classes.

Parameters:
  • eq (str)

  • ops (TrainShape | TensorTrain)

  • optimizer (Literal['optimal', 'dp', 'greedy', 'random-greedy', 'random-greedy-128', 'branch-all', 'branch-2', 'auto', 'auto-hq'])