openfermion.circuits.error_bound
Numerically upper bound the error in the ground state energy for the second order Trotter-Suzuki expansion.
openfermion.circuits.error_bound(
terms, tight=False
)
Args |
terms
|
a list of single-term QubitOperators in the Hamiltonian
to be simulated.
|
tight
|
whether to use the triangle inequality to give a loose
upper bound on the error (default) or to calculate the
norm of the error operator.
|
Returns |
A float upper bound on norm of error in the ground state energy.
|
Notes: follows Poulin et al.'s work in "The Trotter Step Size
Required for Accurate Quantum Simulation of Quantum
Chemistry". In particular, Equation 16 is used for a loose
upper bound, and the norm of Equation 9 is calculated for
a tighter bound using the error operator from error_operator.
Possible extensions of this function would be to get the
expectation value of the error operator with the Hartree-Fock
state or CISD state, which can scalably bound the error in
the ground state but much more accurately than the triangle
inequality.
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."],[],[]]