Wavefunction

Represents a single wavefunction object

 

__init__(self, energy, data, parent=None, index=None, **opts): 

 

get_dimension(self): 

 

@property
ndim(self): 

 

@classmethod
prep_plot_grid(cls, domain, plot_points=100, domain_padding=None): 

 

plot(self, figure=None, domain=None, *, domain_padding=None, grid=None, values=None, plot_points=100, which=None, index=0, scaling=1, shift='auto', plotter=None, plot_density=False, zero_tol=1e-08, contour_levels=None, **opts): 

Plots a single wave function on the grid

  • figure: Any
  • grid: Any
  • index: Any
  • scaling: Any
  • shift: Any
  • opts: Any
  • :returns: _

 

projection_plot(self, coords, figure=None, **plot_options): 

A convenience function to plot multiple projections on the same set of axes

Deprecated in favor of plot_cartesians for its primary use case (DGBWavefunctions)

  • coords: Any
  • figure: Any
  • plot_options: Any
  • :returns: _

 

expectation(self, op, other=None): 

Computes the expectation value of operator op over the wavefunction other and self

  • other: Wavefunction
  • op: Any
  • :returns: _

 

overlap(self, other): 

 

evaluate(self, points): 

Evaluates the current wavefunction

  • :returns: _

 

@property
probability_density(self): 

Computes the probability density of the current wavefunction

  • :returns: _

 

marginalize_out(self, dofs): 

Integrates out the contributions from the degrees of freedom dofs

  • :returns: Wavefunction

 

project(self, dofs): 

Computes the projection of the current wavefunction onto a set of degrees of freedom, returning a projected wave function object

  • :returns: Wavefunction

Feedback

Examples

Templates

Documentation