qrunch.quantum.algorithms.second_quantization.vqes.basic_vqe
Module containing basic VQE.
Classes
Basic VQE that takes a VQE as the underlying algorithm. |
- class SecondQuantizationBasicVqe
Bases:
SecondQuantizationVqeAlgorithmBasic VQE that takes a VQE as the underlying algorithm.
- clear_cache() None
Clear the cache of the underlying VQE.
- Return type:
None
- run(second_quantized_operator: T, circuit: Circuit, initial_parameter_guess: dict[Parameter, float] | None = None) SecondQuantizationVqeResult[T]
Run the VQE and find the eigenvalue.
- Parameters:
second_quantized_operator (T) – The operator whose expectation value should be minimized.
circuit (Circuit) – The parametrized circuit to find optimal parameters for. Should contain unspecified parameters.
initial_parameter_guess (dict[Parameter, float] | None) – Dict specifying the initial value of each Parameter. If None is given initial
0.0 (guess is)
- Return type: