qe-openfermion
is an Orquestra resource that allows workflows to use the OpenFermion library.
Orquestra is a platform for performing computations on quantum computers developed by Zapata Computing.
In order to use qe-openfermion
in your workflow, you need to add it as a resource
in your Orquestra workflow:
imports:
- name: qe-openfermion
type: git
parameters:
repository: "git@github.com:zapatacomputing/qe-openfermion.git"
branch: "master"
and then include it in the imports
argument of your step
:
- name: create-molecule
config:
runtime:
language: python3
imports: [qe-openfermion]
Once that is done you can:
- execute any function from the
steps/
directory as astep
- have the Python code in your step import the
qeopenfermion
module (see below)
Here's an example how to do use methods from qe-openfermion
in a task:
from qeopenfermion import load_qubit_operator
operator = load_qubit_operator('operator.json')
Even though it's intended to be used with Orquestra, qe-openfermion
can be used as a standalone Python module.
This can be done by running pip install .
from the src/
directory.
- If you'd like to report a bug/issue please create a new issue in this repository.
- If you'd like to contribute, please create a pull request.
Unit tests for this project can be run using pytest .
from the main directory.