View source on GitHub |
Create a fermionic operator that is the generator of uccsd.
openfermion.circuits.uccsd_generator(
single_amplitudes, double_amplitudes, anti_hermitian=True
)
This a the most straight-forward method to generate UCCSD operators, however it is slightly inefficient. In particular, it parameterizes all possible excitations, so it represents a generalized unitary coupled cluster ansatz, but also does not explicitly enforce the uniqueness in parametrization, so it is redundant. For example there will be a linear dependency in the ansatz of single_amplitudes[i,j] and single_amplitudes[j,i].
Returns | |
---|---|
uccsd_generator
|
FermionOperator
Anti-hermitian fermion operator that is the generator for the uccsd wavefunction. |