Algorithms (qiskit.algorithms
)¶
It contains a collection of quantum algorithms, for use with quantum computers, to carry out research and investigate how to solve problems in different domains on nearterm quantum devices with short depth circuits.
Algorithms configuration includes the use of optimizers
which
were designed to be swappable subparts of an algorithm. Any component and may be exchanged for
a different implementation of the same component type in order to potentially alter the behavior
and outcome of the algorithm.
Quantum algorithms are run via a QuantumInstance
which must be set with the
desired backend where the algorithm’s circuits will be executed and be configured with a number of
compile and runtime parameters controlling circuit compilation and execution. It ultimately uses
Terra for the actual compilation and execution of the quantum
circuits created by the algorithm and its components.
Algorithms¶
It contains a variety of quantum algorithms and these have been grouped by logical function such as minimum eigensolvers and amplitude amplifiers.
Amplitude Amplifiers¶
The amplification problem is the input to amplitude amplification algorithms, like Grover. 

The interface for amplification algorithms. 

Grover's Search algorithm. 

Grover Result. 
Amplitude Estimators¶
The Amplitude Estimation interface. 

The results object for amplitude estimation algorithms. 

The Quantum Phase Estimationbased Amplitude Estimation algorithm. 

The 

The estimation problem is the input to amplitude estimation algorithm. 

The Faster Amplitude Estimation algorithm. 

The result object for the Faster Amplitude Estimation algorithm. 

The Iterative Amplitude Estimation algorithm. 

The 

The Maximum Likelihood Amplitude Estimation algorithm. 

The 
Eigensolvers¶
Algorithms to find eigenvalues of an operator. For chemistry these can be used to find excited
states of a molecule, and qiskitnature
has some algorithms that leverage chemistry specific
knowledge to do this in that application domain.
Primitivebased Eigensolvers¶
These algorithms are based on the Qiskit Primitives, a new execution paradigm that replaces the use
of QuantumInstance
in algorithms. To ensure continued support and development, we recommend
using the primitivebased Eigensolvers in place of the legacy QuantumInstance
based ones.
Eigensolvers Package (qiskit.algorithms.eigensolvers) 
Legacy Eigensolvers¶
These algorithms, still based on the QuantumInstance
, are superseded
by the primitivebased versions in the section above but are still supported for now.
Deprecated: Eigensolver Interface. 

Deprecated: Eigensolver Result. 

Deprecated: NumPy Eigensolver algorithm. 

Deprecated: Variational Quantum Deflation algorithm. 

Deprecated: VQD Result. 
Time Evolvers¶
Algorithms to evolve quantum states in time. Both real and imaginary time evolution is possible with algorithms that support them. For machine learning, Quantum Imaginary Time Evolution might be used to train Quantum Boltzmann Machine Neural Networks for example.
Primitivebased Time Evolvers¶
These algorithms are based on the Qiskit Primitives, a new execution paradigm that replaces the use
of QuantumInstance
in algorithms. To ensure continued support and development, we recommend
using the primitivebased Time Evolvers in place of the legacy QuantumInstance
based ones.
Interface for Quantum Real Time Evolution. 

Interface for Quantum Imaginary Time Evolution. 

Class for holding time evolution result. 

Time evolution problem class. 

The projected Variational Quantum Dynamics (pVQD) Algorithm. 

The result object for the pVQD algorithm. 

Classical Evolver for imaginary time evolution. 

Classical Evolver for real time evolution. 

Variational Quantum Imaginary Time Evolution algorithm. 

Variational Quantum Real Time Evolution algorithm. 
Legacy Time Evolvers¶
These algorithms, still based on the QuantumInstance
, are superseded
by the primitivebased versions in the section above but are still supported for now.
Deprecated: Interface for Quantum Real Time Evolution. 

Deprecated: Interface for Quantum Imaginary Time Evolution. 

Deprecated: Quantum Real Time Evolution using Trotterization. 

Deprecated: Class for holding evolution result. 

Deprecated: Evolution problem class. 
Variational Quantum Time Evolution¶
Classes used by variational quantum time evolution algorithms  VarQITE
and
VarQRTE
.
Variational Quantum Time Evolutions (qiskit.algorithms.time_evolvers.variational) 
Trotterizationbased Quantum Real Time Evolution¶
Package for primitivesenabled Trotterizationbased quantum time evolution
algorithm  TrotterQRTE
.
This package contains Trotterizationbased Quantum Real Time Evolution algorithm. 
Gradients¶
Algorithms to calculate the gradient of a quantum circuit.
Gradients (qiskit.algorithms.gradients) 
Minimum Eigensolvers¶
Algorithms that can find the minimum eigenvalue of an operator.
Primitivebased Minimum Eigensolvers¶
These algorithms are based on the Qiskit Primitives, a new execution paradigm that replaces the use
of QuantumInstance
in algorithms. To ensure continued support and development, we recommend
using the primitivebased Minimum Eigensolvers in place of the legacy QuantumInstance
based
ones.
Minimum Eigensolvers Package (qiskit.algorithms.minimum_eigensolvers) 
Legacy Minimum Eigensolvers¶
These algorithms, still based on the QuantumInstance
, are superseded
by the primitivebased versions in the section above but are still supported for now.
Deprecated: Minimum Eigensolver Interface. 

Deprecated: Minimum Eigensolver Result. 

Deprecated: Numpy Minimum Eigensolver algorithm. 

Deprecated: Quantum Approximate Optimization Algorithm. 

Deprecated: Variational Quantum Eigensolver algorithm. 
Optimizers¶
Classical optimizers for use by quantum variational algorithms.
Optimizers (qiskit.algorithms.optimizers) It contains a variety of classical optimizers for use by quantum variational algorithms, such as VQE. Logically, these optimizers can be divided into two categories: 
Phase Estimators¶
Algorithms that estimate the phases of eigenstates of a unitary.
Run the Quantum Phase Estimation algorithm to find the eigenvalues of a Hermitian operator. 

Store and manipulate results from running HamiltonianPhaseEstimation. 

Set and use a bound on eigenvalues of a Hermitian operator in order to ensure phases are in the desired range and to convert measured phases into eigenvectors. 

Run the Quantum Phase Estimation (QPE) algorithm. 

Store and manipulate results from running PhaseEstimation. 

Run the Iterative quantum phase estimation (QPE) algorithm. 
State Fidelities¶
Algorithms that compute the fidelity of pairs of quantum states.
State Fidelity Interfaces (qiskit.algorithms.state_fidelities) 
Exceptions¶

For Algorithm specific errors. 
Utility methods¶
Utility methods used by algorithms.

Deprecated: Accepts a list or a dictionary of operators and calculates their expectation values  means and standard deviations. 

Accepts a sequence of operators and calculates their expectation values  means and metadata. 
Utility classes¶
Utility classes used by algorithms (mainly for typehinting purposes).

This empty class is introduced for typing purposes. 