qdk_chemistry.algorithms.time_evolution.builder.trotter module

QDK/Chemistry implementation of the Trotter decomposition Builder.

class qdk_chemistry.algorithms.time_evolution.builder.trotter.Trotter(order=1, num_trotter_steps=1, tolerance=1e-12)[source]

Bases: TimeEvolutionBuilder

Trotter decomposition builder.

Parameters:
  • order (int)

  • num_trotter_steps (int)

  • tolerance (float)

__init__(order=1, num_trotter_steps=1, tolerance=1e-12)[source]

Initialize Trotter builder with specified Trotter decomposition settings.

Parameters:
  • order (int) – The order of the Trotter decomposition (currently only first order is supported). Defaults to 1.

  • num_trotter_steps (int) – Number of Trotter steps for the decomposition. Higher values improve accuracy but increase circuit depth. Defaults to 1.

  • tolerance (float) – Absolute threshold for filtering small Hamiltonian coefficients. Defaults to 1e-12.

name()[source]

Return the name of the time evolution unitary builder.

Return type:

str

type_name()[source]

Return time_evolution_builder as the algorithm type name.

Return type:

str

class qdk_chemistry.algorithms.time_evolution.builder.trotter.TrotterSettings[source]

Bases: Settings

Settings for Trotter decomposition builder.

__init__()[source]

Initialize TrotterSettings with default values.

order

The order of the Trotter decomposition (currently only first order is supported).

num_trotter_steps

The number of Trotter steps to use in the construction.

tolerance

The absolute tolerance for filtering small coefficients.