qml.qchem.kinetic_matrix¶
-
kinetic_matrix
(basis_functions)[source]¶ Return a function that computes the kinetic matrix for a given set of basis functions.
- Parameters
basis_functions (list[BasisFunction]) – basis functions
- Returns
function that computes the kinetic matrix
- Return type
function
Example
>>> symbols = ['H', 'H'] >>> geometry = np.array([[0.0, 0.0, 0.0], [0.0, 0.0, 1.0]], requires_grad = False) >>> alpha = np.array([[3.42525091, 0.62391373, 0.1688554], >>> [3.42525091, 0.62391373, 0.1688554]], requires_grad=True) >>> mol = qml.qchem.Molecule(symbols, geometry, alpha=alpha) >>> args = [alpha] >>> kinetic_matrix(mol.basis_set)(*args) array([[0.76003189, 0.38325367], [0.38325367, 0.76003189]])
code/api/pennylane.qchem.kinetic_matrix
Download Python script
Download Notebook
View on GitHub