View source on GitHub |
Convert amplitudes for use with singlet UCCSD
openfermion.circuits.uccsd_singlet_get_packed_amplitudes(
single_amplitudes, double_amplitudes, n_qubits, n_electrons
)
The output list contains only those amplitudes that are relevant to
singlet UCCSD, in an order suitable for use with the function
uccsd_singlet_generator
.
Returns | |
---|---|
packed_amplitudes
|
list
List storing the unique single and double excitation amplitudes for a singlet UCCSD operator. The ordering lists unique single excitations before double excitations. |