You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️ This issue is part of an internal assignment and not meant for external contributors.
PennyLane has several functions and classes for creating and manipulating qubit and fermionic operators. It will be useful to have functions that allow converting between PennyLane operations and OpenFermion objects. These new functions, called to_openfermion and from_openfermion , should allow users to
Thank you for providing detailed guidelines for the assignment. I have implemented the requested features in PR #5773. Could you confirm if we only need the tol and wires arguments for the from_openfermion method, while these can also be implemented for to_openfermion?
Additionally, the codecov test keeps failing, even when the coverage of my two adjusted files qchem/convert.py and qchem/convert_openfermion.py has a 100% coverage.
Thank you for providing detailed guidelines for the assignment. I have implemented the requested features in PR #5773. Could you confirm if we only need the tol and wires arguments for the from_openfermion method, while these can also be implemented for to_openfermion?
Additionally, the codecov test keeps failing, even when the coverage of my two adjusted files qchem/convert.py and qchem/convert_openfermion.py has a 100% coverage.
Thanks @dariavh. You can also add tol and wires arguments for to_openfermion. We will explore the codecov test.
Feature details
PennyLane has several functions and classes for creating and manipulating qubit and fermionic operators. It will be useful to have functions that allow converting between PennyLane operations and OpenFermion objects. These new functions, called
to_openfermion
andfrom_openfermion
, should allow users toImplementation
The
to_openfermion
andfrom_openfermion
functions should be placed in a new module calledpennylane.qchem.convert_openfermion
and be importable asRequirements
from_openfermion
function should have awires
argument accepting a dictionary for custom wire mapping.from_openfermion
function should have atol
argument for discarding the imaginary part of the coefficients.The text was updated successfully, but these errors were encountered: