matchcake.observables package¶
Submodules¶
matchcake.observables.batch_hamiltonian module¶
- class matchcake.observables.batch_hamiltonian.BatchHamiltonian(*args, **kwargs)¶
Bases:
LinearCombination
- __init__(*args, **kwargs)¶
- eigvals()¶
Return the eigenvalues of the specified operator.
This method uses pre-stored eigenvalues for standard observables where possible and stores the corresponding eigenvectors from the eigendecomposition.
- Returns:
array containing the eigenvalues of the operator
- Return type:
array
- eigvals_on_z_basis()¶
- property name¶
String for the name of the operator.
- reduce(expectation_values)¶
Use the expectation values and the coefficients of the Hamiltonian to compute the energy.