qrunch.quantum.algorithms.second_quantization.quantum_phase_estimation.bayesian_quantum_phase_estimation

Bayesian Quantum Phase Estimation algorithm for second-quantized Hamiltonians.

Classes

SecondQuantizationBayesianQuantumPhaseEstimation

Bayesian Quantum Phase Estimation (BQPE) algorithm for second-quantized Hamiltonians.

class SecondQuantizationBayesianQuantumPhaseEstimation

Bases: object

Bayesian Quantum Phase Estimation (BQPE) algorithm for second-quantized Hamiltonians.

Estimates the lowest eigenvalue of a second-quantized Hamiltonian \(H\) by mapping it to a qubit Hamiltonian via a Mapper.

__init__(quantum_phase_estimation: BayesianQuantumPhaseEstimation, mapper: Mapper | None = None) None

Initialise the second-quantized BQPE algorithm.

Parameters:
  • quantum_phase_estimation (BayesianQuantumPhaseEstimation) – The underlying Bayesian QPE algorithm to use for estimating the phase.

  • mapper (Mapper | None) – Optional mapper to convert the second-quantized Hamiltonian to a qubit Hamiltonian. Defaults to JordanWignerMapper.

Return type:

None

run(state_preparation_circuit: Circuit, hamiltonian: FermionHermitianSumProtocol | PairedHardcoreBosonHermitianSumProtocol) ExpectationValue

Execute the Bayesian QPE algorithm, returning the estimated eigenvalue.

Parameters:
Return type:

ExpectationValue