qrunch.chemistry.ground_state_problem.calculators.quantum_phase_estimation_calculators
Module containing a QPE-based ground state energy calculator for chemistry problems.
Classes
Class for calculating the ground state energy of a molecule using quantum phase estimation. |
|
Class for calculating the ground state energy of a molecule using Bayesian quantum phase estimation. |
- class BasicQuantumPhaseEstimationGroundStateProblemCalculator
Bases:
objectClass for calculating the ground state energy of a molecule using quantum phase estimation.
- __init__(quantum_phase_estimator: SecondQuantizationBasicQuantumPhaseEstimation, *, paired_electron_approximation: bool) None
Initialize the molecular ground state energy calculator.
- Parameters:
quantum_phase_estimator (SecondQuantizationBasicQuantumPhaseEstimation) – The quantum phase estimation algorithm to use for the calculation.
paired_electron_approximation (bool) – Whether to use the paired-electron approximation.
- Return type:
None
- calculate(ground_state_problem: RestrictedGroundStateProblem | UnrestrictedGroundStateProblem) GroundStateProblemCalculatorResult
Calculate the expectation value of the ground state energy of the given molecule.
- Parameters:
ground_state_problem (RestrictedGroundStateProblem | UnrestrictedGroundStateProblem) – Ground state problem to calculate energy for.
- Return type:
- class BayesianQuantumPhaseEstimationGroundStateProblemCalculator
Bases:
objectClass for calculating the ground state energy of a molecule using Bayesian quantum phase estimation.
- __init__(quantum_phase_estimator: SecondQuantizationBayesianQuantumPhaseEstimation, *, paired_electron_approximation: bool) None
Initialize the molecular ground state energy calculator.
- Parameters:
quantum_phase_estimator (SecondQuantizationBayesianQuantumPhaseEstimation) – The Bayesian quantum phase estimation algorithm to use for the calculation.
paired_electron_approximation (bool) – Whether to use the paired-electron approximation.
- Return type:
None
- calculate(ground_state_problem: RestrictedGroundStateProblem | UnrestrictedGroundStateProblem) GroundStateProblemCalculatorResult
Calculate the expectation value of the ground state energy of the given molecule.
- Parameters:
ground_state_problem (RestrictedGroundStateProblem | UnrestrictedGroundStateProblem) – Ground state problem to calculate energy for.
- Return type: