Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.
Important

IBM Quantum Platform is moving and this version will be sunset on July 1. To get started on the new platform, read the migration guide.

EvolutionProblem

class EvolutionProblem(hamiltonian, time, initial_state, aux_operators=None, truncation_threshold=1e-12, t_param=None, hamiltonian_value_dict=None)

GitHub

Bases: object

Evolution problem class.

This class is the input to time evolution algorithms and must contain information on the total evolution time, a quantum state to be evolved and under which Hamiltonian the state is evolved.

Parameters

  • hamiltonian (OperatorBase) – The Hamiltonian under which to evolve the system.
  • time (float) – Total time of evolution.
  • initial_state (Union[StateFn, QuantumCircuit]) – Quantum state to be evolved.
  • aux_operators (Union[List[Optional[OperatorBase]], Dict[str, OperatorBase], None]) – Optional list of auxiliary operators to be evaluated with the evolved initial_state and their expectation values returned.
  • truncation_threshold (float) – Defines a threshold under which values can be assumed to be 0. Used when aux_operators is provided.
  • t_param (Optional[Parameter]) – Time parameter in case of a time-dependent Hamiltonian. This free parameter must be within the hamiltonian.
  • hamiltonian_value_dict (Optional[Dict[Parameter, complex]]) – If the Hamiltonian contains free parameters, this dictionary maps all these parameters to values.

Raises

ValueError – If non-positive time of evolution is provided.


Methods

validate_params

EvolutionProblem.validate_params()

Checks if all parameters present in the Hamiltonian are also present in the dictionary that maps them to values.

Raises

ValueError – If Hamiltonian parameters cannot be bound with data provided.

Return type

None


Attributes

time

Returns time.

Return type

float

Was this page helpful?
Report a bug or request content on GitHub.