OpenFermion
OpenFermion copied to clipboard
The electronic structure package for quantum computers.
In the file src/openfermion/contrib/representability/_multitensor.py, [lines 105-122](https://github.com/quantumlib/OpenFermion/blob/36ced6d5f55b9bad5c09fb3f3352e181a37cdaf0/src/openfermion/contrib/representability/_multitensor.py#L105-L122), the index variable `index` is first used in a `for` loop, then used again in subsequent lines _outside_ of the `for` loop. ```python for...
Function `linearize_term` in file `src/openfermion/measurements/equality_cosntraint_projection.py` has several returns in an if-elif conditional, but it doesn't have a default return, which means it can return `None` if none of the conditions...
PR #1056 modified the pytest configuration to set a global random number seed, to deal with flaky tests that failed sporadically because some numerical comparisons exceeded tolerances undpredictably. Setting a...
We're using Markdown more than reStructuredText in repos like Cirq & TFQ.
In file src/openfermion/resource_estimates/pbc/df/df_integrals.py, [lines 159-172](https://github.com/quantumlib/OpenFermion/blob/36ced6d5f55b9bad5c09fb3f3352e181a37cdaf0/src/openfermion/resource_estimates/pbc/df/df_integrals.py#L159-L172), the function `double_factorize` is declared as returning None, but there's a return statement where it returns something other than none: ```python if self.df_factors is not...
Added a function to calculate the 1-norm of DF post-processed with block invariant symmetry shifts (DF+LRPS method of https://pubs.acs.org/doi/abs/10.1021/acs.jctc.4c01390), along with a test.
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.0 to 6.0.1. Release notes Sourced from actions/checkout's releases. v6.0.1 What's Changed Update all references from v5 and v4 to v6 by @ericsciple in actions/checkout#2314 Add worktree...
numpy.int64 and other numeric types are currently not accepted as coefficients (assuming this is not on purpose). Instead of adding them manually, numbers. Number evaluates to true for all of...
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.4.0 to 2.6.0. Release notes Sourced from urllib3's releases. 2.6.0 🚀 urllib3 is fundraising for HTTP/2 support urllib3 is raising ~$40,000 USD to release HTTP/2 support and...
Bumps [fonttools](https://github.com/fonttools/fonttools) from 4.58.1 to 4.61.0. Release notes Sourced from fonttools's releases. 4.61.0 [varLib.main]: SECURITY Only use basename(vf.filename) to prevent path traversal attacks when running fonttools varLib command-line script, or...