pyvibdmc.simulation_utilities.imp_samp_helper

Classes

ChainRuleHelper

Module Contents

class pyvibdmc.simulation_utilities.imp_samp_helper.ChainRuleHelper(coords, module)[source]
cds
xp
analyzer
dpsidx(dpsi_dr, dr_dx)[source]

Generic function that takes in a series of dpsi/dr matrices and dr/dx matrices and generates the dpsi/dx matrix. Assumes direct product wave function fed in appropriately.

d2psidx2(d2psi_dr2, d2r_dx2, dpsi_dr, dr_dx)[source]
Generic function that takes in a series of d2psi_dr2 and d2r/dx matrices and generates the second derivative of

psi wrt x, doing out the chain rule explicitly.

dr_dx(atm_pair)[source]

calculates the dr/dx first derivatives for bond lengths :param self.cds: num_walkers x num_atms x 3 array :param atm_bonds: list of bond lengths that are relevant to the trial wave function. like [0,1] :return: num_walkers x num_atoms x 3 array of dr/dx

d2r_dx2(atm_pair, dr_dx=None)[source]

Calculates d2r/dx2 second derivatives for bond lengths

dcth_dx(atm_pair, cos_theta=None, dr_da=None, dr_dc=None)[source]

calculates the dcos(theta)/dx first derivatives for bond lengths :param self.cds: num_walkers x num_atms x 3 array :param atm_pair: list of bond lengths that are relevant to the trial wave function. like [0,2,1]. ALWAYS put vertex of angle in middle index atm_bonds[x][1]. :param dr_das: The derivative of the bond length corresponding to atm_bonds[i][0] and atm_bonds[i][1]. i is the index of the atm_bonds list of lists :param dr_dcs: The derivative of the bond length corresponding to atm_bonds[i][1] and atm_bonds[i][2]. i is the index of the atm_bonds list of lists :return: len(atm_bonds) x num_walkers x num_atoms x 3 array of dr/dx

d2cth_dx2(atm_pair, cos_theta=None, dr_da=None, dr_dc=None, d2r_da2=None, d2r_dc2=None)[source]
Parameters:
  • self.cds – num_walkers x num_atms x 3 array

  • atm_bonds – list of lists of bond lengths that are relevant to the trial wave function. like [[0,2,1]]. ALWAYS put vertex of angle in middle index atm_bonds[x][1].

  • dr_das – The derivative of the bond length corresponding to atm_bonds[i][0] and atm_bonds[i][1]. i is the index of the atm_bonds list of lists

  • dr_dcs – The derivative of the bond length corresponding to atm_bonds[i][1] and atm_bonds[i][2]. i is the index of the atm_bonds list of lists

  • d2r_da2s – The second derivative of the bond length corresponding to atm_bonds[i][0] and atm_bonds[i][1]. i is the index of the atm_bonds list of lists

  • d2r_dc2s – The second derivative of the bond length corresponding to atm_bonds[i][1] and atm_bonds[i][2]. i is the index of the atm_bonds list of lists

dth_dx(atm_pair, cos_theta=None, dcth_dx=None, dr_da=None, dr_dc=None)[source]
Parameters:
  • self.cds – num_walkers x num_atoms x 3 array

  • atm_pair – list that corresponds to indices of the ABC angle, where B is the vertex

  • dcth_dxs – Derivative of cosine theta wrt x. This is needed for this derivative and the second derivative.

d2th_dx2(atm_pair, cos_theta=None, dcth_dx=None, dr_da=None, dr_dc=None, d2r_da2=None, d2r_dc2=None)[source]
Parameters:
  • self.cds – num_walkers x num_atoms x 3 array

  • atm_pair – list that corresponds to indices of the ABC angle, where B is the vertex

  • dcth_dxs – Derivative of cosine theta wrt x. This is needed for this derivative and the second derivative.