UCCSD¶

class
UCCSD
(num_orbitals, num_particles, reps=1, active_occupied=None, active_unoccupied=None, initial_state=None, qubit_mapping='parity', two_qubit_reduction=True, num_time_slices=1, shallow_circuit_concat=True, z2_symmetries=None, method_singles='both', method_doubles='ucc', excitation_type='sd', same_spin_doubles=True, skip_commute_test=False)[source]¶ Bases:
qiskit.aqua.components.variational_forms.variational_form.VariationalForm
This trial wavefunction is a Unitary CoupledCluster Single and Double excitations variational form. For more information, see https://arxiv.org/abs/1805.04340 And for the singlet qUCCD (full) and pair qUCCD) see: https://arxiv.org/abs/1911.10864
Constructor.
 Parameters
num_orbitals (
int
) – number of spin orbitals, has a min. value of 1.num_particles (
Union
[Tuple
[int
,int
],List
[int
],int
]) – number of particles, if it is a list, the first number is alpha and the second number if beta.reps (
int
) – number of repetitions of basic module, has a min. value of 1.active_occupied (
Optional
[List
[int
]]) – list of occupied orbitals to consider as active space.active_unoccupied (
Optional
[List
[int
]]) – list of unoccupied orbitals to consider as active space.initial_state (
Union
[QuantumCircuit
,InitialState
,None
]) – An initial state object.qubit_mapping (
str
) – qubit mapping type.two_qubit_reduction (
bool
) – two qubit reduction is applied or not.num_time_slices (
int
) – parameters for dynamics, has a min. value of 1.shallow_circuit_concat (
bool
) – indicate whether to use shallow (cheap) mode for circuit concatenation.z2_symmetries (
Optional
[Z2Symmetries
]) – represent the Z2 symmetries, including symmetries, sq_paulis, sq_list, tapering_values, and cliffords.method_singles (
str
) – specify the single excitation considered. ‘alpha’, ‘beta’, ‘both’ only alpha or beta spinorbital single excitations or both (all of them).method_doubles (
str
) – specify the single excitation considered. ‘ucc’ (conventional ucc), succ (singlet ucc), succ_full (singlet ucc full), pucc (pair ucc).excitation_type (
str
) – specify the excitation type ‘sd’, ‘s’, ‘d’ respectively for single and double, only single, only double excitations.same_spin_doubles (
bool
) – enable double excitations of the same spin.skip_commute_test (
bool
) – when tapering excitation operators we test and exclude any that do
not commute with symmetries. This test can be skipped to include all tapered excitation operators whether they commute or not.
 Raises:
ValueError: Num particles list is not 2 entries
Methods
Computes single and double excitation lists.
Outputs the list of lists of grouped excitation.
Construct the variational form, given its parameters.
returns entangler map
Groups the excitations and gives out the remaining ones in the list_de_temp list because those excitations are controlled by the same parameter in full singlet UCCSD unlike in usual UCCSD where every excitation has its own parameter.
Define that, given list of double excitations list_de and number of spinorbitals num_orbitals, which excitations involve the same spatial orbitals for full singlet UCCSD.
Triggers the adaptive behavior of this UCCSD instance.
Orders the hopping operators according to the grouped excitations for the full singlet UCCSD.
Pops the hopping operator that was added last.
Pushes a new hopping operator.
Regroups the excitations that involve same spatial orbitals for example, with labeling.
validate entangler map
Attributes

double_excitations
¶ Getter of double excitation list :returns: double excitation list :rtype: list[list[int]]

excitation_pool
¶ Returns the full list of available excitations (called the pool).
 Return type
List
[WeightedPauliOperator
]

num_parameters
¶ Number of parameters of the variational form.
 Returns
An integer indicating the number of parameters.
 Return type
int

num_qubits
¶ Number of qubits of the variational form.
 Returns
An integer indicating the number of qubits.
 Return type
int

parameter_bounds
¶ Parameter bounds.
 Returns
A list of pairs indicating the bounds, as (lower, upper). None indicates an unbounded parameter in the corresponding direction. If None is returned, problem is fully unbounded.
 Return type
list

preferred_init_points
¶ Getter of preferred initial points based on the given initial state.

setting
¶

single_excitations
¶ Getter of single excitation list :returns: single excitation list :rtype: list[list[int]]

support_parameterized_circuit
¶ Whether or not the subclass support parameterized circuit.
 Returns
indicate the subclass support parameterized circuit
 Return type
boolean