openfermion.circuits.trotter_operator_grouping
Trotter-decomposes operators into groups without exponentiating.
openfermion.circuits.trotter_operator_grouping(
hamiltonian,
trotter_number=1,
trotter_order=1,
term_ordering=None,
k_exp=1.0
)
Operators are still Hermitian at the end of this method but have been
multiplied by k_exp.
Note |
The default term_ordering is simply the ordered keys of
the QubitOperators.terms dict.
|
Args |
hamiltonian
|
QubitOperator
full hamiltonian
|
trotter_number
|
int
optional number of trotter steps -
default is 1
|
trotter_order
|
int
optional order of trotterization as
an integer from 1-3 - default is 1
|
term_ordering
|
list of (tuples of tuples
optional list
of QubitOperator terms dictionary keys that specifies
order of terms when trotterizing
|
k_exp
|
float
optional exponential factor
to all terms when trotterizing
|
Yields |
QubitOperator generator
|
Raises |
ValueError if order > 3 or order <= 0,
TypeError for incorrect types
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[]]