OpenFermion
OpenFermion copied to clipboard
The electronic structure package for quantum computers.
https://github.com/quantumlib/OpenFermion/blob/6fb280c9d223522ed5ce5e90f5cd809beda7f177/src/openfermion/hamiltonians/_molecular_data.py#L790 May be helpful to check consistency between the active indices and occupied indices. Something like: ``` if active_indices and not occupied_indices: raise RuntimeError("Forget to specify core orbitals?") ``` It's...
Currently, we have a function `generate_linear_qubit_operator` in `utils/_linear_qubit_operator.py` which takes a QubitOperator and outputs a LinearQubitOperator or ParallelLinearQubitOperator (subclasses of scipy.sparse.linalg.LinearOperator) which can be used, for instance, in scipy.sparse eigenvalue...
On my setup: ``` src/openfermion/ops/_qubit_operator_test.py::test_get_operator_groups_zero /home/kjs/Projects/OpenFermion/src/openfermion/ops/_qubit_operator.py:223: RuntimeWarning: Invalid num_groups 0 < 1. RuntimeWarning) src/openfermion/utils/_davidson_test.py::QubitDavidsonTest::test_get_lowest_y_complex /home/kjs/Projects/OpenFermion/src/openfermion/utils/_davidson.py:142: RuntimeWarning: Initial guess is not real only! warnings.warn('Initial guess is not real only!', RuntimeWarning) /home/kjs/Projects/OpenFermion/src/openfermion/utils/_davidson.py:213:...
This would improve the type safety of InteractionOperator. `get_quadratic_hamiltonian` and `get_diagonal_coulomb_hamiltonian` already do this.
From discussing with Joseph Carlson, people want to study a Hubbard model where each site splits up into not only 2 spins, but more. For instance, 3 represents some quark...
In some cases the result of a Jordan-Wigner transform applied to an InteractionOperator is different if it is converted to a FermionOperator first, as shown in the code below. It...
They take about 42 seconds to run.
The function `number_operator` has the very awkward property that `number_operator(n_sites, k)` gives the same operator no matter what the value of `n_sites` is. The output only depends on `k`, yet...
The following was reported by Burt Holzman from Fermilab, who installed OpenFermion in a docker image: >PS The hackiest thing in there is changing the ownership in openfermion (which is...
Right now using most of the plugins or MolecularData class will default to the installation directory specified in the config file, which could be in a very inconvenient location for...