qdk_chemistry.algorithms.phase_estimation.unary_phase_estimation module

Unary-iteration phase estimation with a number of walk queries.

class qdk_chemistry.algorithms.phase_estimation.unary_phase_estimation.UnaryPhaseEstimation(shots=3, resolve_positive_branch=False)[source]

Bases: PhaseEstimation

Phase estimation using unary iteration over an arbitrary-length query schedule.

Parameters:
  • shots (int)

  • resolve_positive_branch (bool)

__init__(shots=3, resolve_positive_branch=False)[source]

Initialize the unary-iteration phase estimation routine.

Parameters:
  • shots (int) – The number of shots to execute the circuit.

  • resolve_positive_branch (bool) – True selects the non-negative eigenvalue branch, False (the default) the non-positive one, as wanted for a ground state.

Return type:

None

name()[source]

Return the algorithm name as qdk_unary.

Return type:

str

class qdk_chemistry.algorithms.phase_estimation.unary_phase_estimation.UnaryPhaseEstimationSettings[source]

Bases: PhaseEstimationSettings

Settings for the unary-iteration phase estimation algorithm.

__init__()[source]

Initialize the settings for unary-iteration phase estimation.

Return type:

None