openfermion.circuits.low_depth_second_order_trotter_error_operator

Determine the difference between the exact generator of unitary evolution and the approximate generator given by the second-order Trotter-Suzuki expansion.

terms a list of FermionOperators in the Hamiltonian in the order in which they will be simulated.
indices a set of indices the terms act on in the same order as terms.
is_hopping_operator a list of whether each term is a hopping operator.
jellium_only Whether the terms are from the jellium Hamiltonian only, rather than the full dual basis Hamiltonian (i.e. whether c_i = c for all number operators i^ i, or whether they depend on i as is possible in the general case).
verbose Whether to print percentage progress.

The difference between the true and effective generators of time evolution for a single Trotter step.

Notes: follows Equation 9 of Poulin et al.'s work in "The Trotter Step Size Required for Accurate Quantum Simulation of Quantum Chemistry", applied to the "stagger"-based Trotter step for detailed in Kivlichan et al., "Quantum Simulation of Electronic Structure with Linear Depth and Connectivity", arxiv:1711.04789.