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.

qiskit.aqua.operators.legacy.evolution_instruction

evolution_instruction(pauli_list, evo_time, num_time_slices, controlled=False, power=1, use_basis_gates=True, shallow_slicing=False, barrier=False)

GitHub

Construct the evolution circuit according to the supplied specification.

Parameters

  • pauli_list (list([[complex, Pauli]])) – The list of pauli terms corresponding to a single time slice to be evolved
  • evo_time (Union(complex, float, Parameter, ParameterExpression)) – The evolution time
  • num_time_slices (int) – The number of time slices for the expansion
  • controlled (bool, optional) – Controlled circuit or not
  • power (int, optional) – The power to which the unitary operator is to be raised
  • use_basis_gates (bool, optional) – boolean flag for indicating only using basis gates when building circuit.
  • shallow_slicing (bool, optional) – boolean flag for indicating using shallow qc.data reference repetition for slicing
  • barrier (bool, optional) – whether or not add barrier for every slice

Returns

The Instruction corresponding to specified evolution.

Return type

Instruction

Raises

  • AquaError – power must be an integer and greater or equal to 1
  • ValueError – Unrecognized pauli
Was this page helpful?
Report a bug or request content on GitHub.