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.

TrotterizationFactory

class TrotterizationFactory

GitHub

A factory for conveniently creating TrotterizationBase instances.


Methods

build

static TrotterizationFactory.build(mode='trotter', reps=1)

A factory for conveniently creating TrotterizationBase instances.

Parameters

  • mode (str) – One of ‘trotter’, ‘suzuki’, ‘qdrift’
  • reps (int) – The number of times to repeat the Trotterization circuit.

Return type

TrotterizationBase

Returns

The desired TrotterizationBase instance.

Raises

ValueError – A string not in [‘trotter’, ‘suzuki’, ‘qdrift’] is given for mode.

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