OpenFermion-FQE
OpenFermion-FQE copied to clipboard
The Fermionic Quantum Emulator (FQE) is a fermionic simulation research tool specializing in quantum circuits emulating fermion dynamics.
Hi, Noob here. Tried to time-evolve a TB Hamiltonian for spinless fermions, strting from a half-filled state ```python import fqe from openfermion import FermionOperator,hermitian_conjugated N=2 M=4 half_full = fqe.get_wavefunction(N, N,...
Fix test references for dense Hamiltonian evolution and restore 100% line coverage
Leaving as a placeholder for when I have time to add commits and tests. ``` from pyscf.fci.cistring import make_strings def pyscf_to_fqe_wf(pyscf_cimat, pyscf_mf=None, norbs=None, nelec=None): if pyscf_mf is None: assert norbs...
Given the sparsity of lattice Hamiltonians should we have custom evolution routines? Or does `DiagonalCoulomb` cover enough of these uses?
In PR #128 where I fixed the Taylor expansion limit and max_expansion limit logic I introduced a logic path but did not explicitly test this path. Code coverage for the...
The generage_antisymm_generator function returns zero matrix instead of random matrix. https://github.com/quantumlib/OpenFermion-FQE/blob/109a86418003fb14ee4aea9c88ffc1cd25d28d47/tests/generalized_doubles_factorization_test.py#L36 So, the test_generalized_doubles() is testing against zero matrix.
`Wavefunction` is currently multiply defined, once as the [class](https://github.com/quantumlib/OpenFermion-FQE/blob/master/src/fqe/wavefunction.py#L52) and once as a getter [function](https://github.com/quantumlib/OpenFermion-FQE/blob/master/src/fqe/_fqe_control.py#L134) for the class. This caused a few issues with mypy, and while they are easily...
On a fresh colab with an `fqe` install the notebook gives the following error: ``` --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) in () 4 import numpy 5 import fqe...
If I want to build a Hamiltonian from UHF I would do the following in pyscf + OpenFermion + FQE. This uses the `build_hamiltonian` function to translate the FermionOperator into...
Suppose I have an OpenFermion `InteractionOperator` and I want to measure its energy on a FQE wave function. It appears there are two routs to do this: 1) Convert the...