pytc.solver.bug_rpa.df_weighted_energy_host_streamed

pytc.solver.bug_rpa.df_weighted_energy_host_streamed(B_host, U, S, *, block_rows, trace_sink=None)[source]

sum_r S_r ||B.T U_r||^2 with B host-resident.

This is the first pass of the streamed DF action and nothing more: the energy needs only the auxiliary factor, so B is traversed once and the pair-space vector is never formed on either side.

Parameters:
  • B_host (Any)

  • U (Any)

  • S (Any)

  • block_rows (int)

  • trace_sink (list | None)

Return type:

Any