openfermion.circuits.uccsd_generator
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].
Args |
single_amplitudes
|
list or ndarray
list of lists with each sublist
storing a list of indices followed by single excitation amplitudes
i.e. [[[i,j],t_ij], ...] OR [NxN] array storing single excitation
amplitudes corresponding to
t[i,j] * (a_i^\dagger a_j - H.C.)
|
double_amplitudes
|
list or ndarray
list of lists with each sublist
storing a list of indices followed by double excitation amplitudes
i.e. [[[i,j,k,l],t_ijkl], ...] OR [NxNxNxN] array storing double
excitation amplitudes corresponding to
t[i,j,k,l] * (a_i^\dagger a_j a_k^\dagger a_l - H.C.)
|
anti_hermitian
|
Bool
Flag to generate only normal CCSD operator
rather than unitary variant, primarily for testing
|
Returns |
uccsd_generator
|
FermionOperator
Anti-hermitian fermion operator that
is the generator for the uccsd wavefunction.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[]]