![]() |
Compute the fermionic swap network Trotter error of a diagonal
openfermion.circuits.fermionic_swap_trotter_error_operator_diagonal_two_body(
hamiltonian, external_potential_at_end=False
)
two-body Hamiltonian.
Args | |
---|---|
hamiltonian (FermionOperator): The diagonal Coulomb Hamiltonian to compute the Trotter error for. |
Returns | |
---|---|
error_operator
|
The second-order Trotter error operator. |
Notes:
Follows Eq 9 of Poulin et al., arXiv:1406.4920, applied to the Trotter step detailed in Kivlichan et al., arxiv:1711.04789.