About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
TrotterizationFactory
class qiskit.opflow.evolutions.TrotterizationFactory
Bases: object
Deprecated: A factory for conveniently creating TrotterizationBase instances.
Methods
build
static build(mode='trotter', reps=1)
A factory for conveniently creating TrotterizationBase instances.
Deprecated since version 0.24.0
The method qiskit.opflow.evolutions.trotterizations.trotterization_factory.TrotterizationFactory.build()
is deprecated as of qiskit-terra 0.24.0. It will be removed no earlier than 3 months after the release date. For code migration guidelines, visit https://qisk.it/opflow_migration.
Parameters
- mode (str) – One of ‘trotter’, ‘suzuki’, ‘qdrift’
- reps (int) – The number of times to repeat the Trotterization circuit.
Returns
The desired TrotterizationBase instance.
Raises
ValueError – A string not in [‘trotter’, ‘suzuki’, ‘qdrift’] is given for mode.
Return type
Was this page helpful?
Report a bug or request content on GitHub.