Skip to content

Commit e686509

Browse files
committed
Added method parameter to documentation of trotterization
1 parent 255a6c3 commit e686509

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/qrisp/operators/qubit/qubit_operator.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,13 @@ def trotterization(self, method='commuting_qw'):
13521352
r"""
13531353
Returns a function for performing Hamiltonian simulation, i.e., approximately implementing the unitary operator $e^{itH}$ via Trotterization.
13541354
1355+
Parameters
1356+
----------
1357+
method : str, optional
1358+
The method for grouping the QubitTerms.
1359+
Available are ``commuting`` (groups such that all QubitTerms mutually commute) and ``commuting_qw`` (groups such that all QubitTerms mutually commute qubit-wise).
1360+
The default is ``commuting_qw``.
1361+
13551362
Returns
13561363
-------
13571364
U : function

0 commit comments

Comments
 (0)