114 lines
4.5 KiB
Plaintext
114 lines
4.5 KiB
Plaintext
---
|
||
title: VQEUVCCSDFactory
|
||
description: API reference for qiskit.chemistry.algorithms.VQEUVCCSDFactory
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.chemistry.algorithms.VQEUVCCSDFactory
|
||
---
|
||
|
||
# VQEUVCCSDFactory
|
||
|
||
<Class id="qiskit.chemistry.algorithms.VQEUVCCSDFactory" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/chemistry/algorithms/ground_state_solvers/minimum_eigensolver_factories/vqe_uvccsd_factory.py" signature="VQEUVCCSDFactory(quantum_instance, optimizer=None, initial_point=None, gradient=None, expectation=None, include_custom=False)" modifiers="class">
|
||
Bases: `qiskit.chemistry.algorithms.ground_state_solvers.minimum_eigensolver_factories.minimum_eigensolver_factory.MinimumEigensolverFactory`
|
||
|
||
A factory to construct a VQE minimum eigensolver with UVCCSD ansatz wavefunction.
|
||
|
||
**Parameters**
|
||
|
||
* **quantum\_instance** (`QuantumInstance`) – The quantum instance used in the minimum eigensolver.
|
||
* **optimizer** (`Optional`\[`Optimizer`]) – A classical optimizer.
|
||
* **initial\_point** (`Optional`\[`ndarray`]) – An optional initial point (i.e. initial parameter values) for the optimizer. If `None` then VQE will look to the variational form for a preferred point and if not will simply compute a random one.
|
||
* **gradient** (`Union`\[`GradientBase`, `Callable`, `None`]) – An optional gradient function or operator for optimizer.
|
||
* **expectation** (`Optional`\[`ExpectationBase`]) – The Expectation converter for taking the average value of the Observable over the var\_form state function. When `None` (the default) an [`ExpectationFactory`](qiskit.aqua.operators.expectations.ExpectationFactory "qiskit.aqua.operators.expectations.ExpectationFactory") is used to select an appropriate expectation based on the operator and backend. When using Aer qasm\_simulator backend, with paulis, it is however much faster to leverage custom Aer function for the computation but, although VQE performs much faster with it, the outcome is ideal, with no shot noise, like using a state vector simulator. If you are just looking for the quickest performance when choosing Aer qasm\_simulator and the lack of shot noise is not an issue then set include\_custom parameter here to `True` (defaults to `False`).
|
||
* **include\_custom** (`bool`) – When expectation parameter here is None setting this to `True` will allow the factory to include the custom Aer pauli expectation.
|
||
|
||
## Methods
|
||
|
||
### get\_solver
|
||
|
||
<Function id="qiskit.chemistry.algorithms.VQEUVCCSDFactory.get_solver" signature="VQEUVCCSDFactory.get_solver(transformation)">
|
||
Returns a VQE with a UVCCSD wavefunction ansatz, based on `transformation`. This works only with a `BosonicTransformation`.
|
||
|
||
**Parameters**
|
||
|
||
**transformation** (`BosonicTransformation`) – a bosonic qubit operator transformation.
|
||
|
||
**Return type**
|
||
|
||
`MinimumEigensolver`
|
||
|
||
**Returns**
|
||
|
||
A VQE suitable to compute the ground state of the molecule transformed by `transformation`.
|
||
</Function>
|
||
|
||
### supports\_aux\_operators
|
||
|
||
<Function id="qiskit.chemistry.algorithms.VQEUVCCSDFactory.supports_aux_operators" signature="VQEUVCCSDFactory.supports_aux_operators()">
|
||
Returns whether the eigensolver generated by this factory supports auxiliary operators.
|
||
</Function>
|
||
|
||
## Attributes
|
||
|
||
### expectation
|
||
|
||
<Attribute id="qiskit.chemistry.algorithms.VQEUVCCSDFactory.expectation">
|
||
Getter of the expectation.
|
||
|
||
**Return type**
|
||
|
||
`ExpectationBase`
|
||
</Attribute>
|
||
|
||
### gradient
|
||
|
||
<Attribute id="qiskit.chemistry.algorithms.VQEUVCCSDFactory.gradient">
|
||
Getter of the gradient function
|
||
|
||
**Return type**
|
||
|
||
`Union`\[`GradientBase`, `Callable`, `None`]
|
||
</Attribute>
|
||
|
||
### include\_custom
|
||
|
||
<Attribute id="qiskit.chemistry.algorithms.VQEUVCCSDFactory.include_custom">
|
||
Getter of the `include_custom` setting for the `expectation` setting.
|
||
|
||
**Return type**
|
||
|
||
`bool`
|
||
</Attribute>
|
||
|
||
### initial\_point
|
||
|
||
<Attribute id="qiskit.chemistry.algorithms.VQEUVCCSDFactory.initial_point">
|
||
Getter of the initial point.
|
||
|
||
**Return type**
|
||
|
||
`ndarray`
|
||
</Attribute>
|
||
|
||
### optimizer
|
||
|
||
<Attribute id="qiskit.chemistry.algorithms.VQEUVCCSDFactory.optimizer">
|
||
Getter of the optimizer.
|
||
|
||
**Return type**
|
||
|
||
`Optimizer`
|
||
</Attribute>
|
||
|
||
### quantum\_instance
|
||
|
||
<Attribute id="qiskit.chemistry.algorithms.VQEUVCCSDFactory.quantum_instance">
|
||
Getter of the quantum instance.
|
||
|
||
**Return type**
|
||
|
||
`QuantumInstance`
|
||
</Attribute>
|
||
</Class>
|
||
|