Skip to content

wugaxp/qe-openfermion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qe-openfermion

What is it?

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.

Usage

Workflow

In order to use qe-openfermion in your workflow, you need to add it as a resource in your Orquestra workflow:

resources:
- name: qe-openfermion
  type: git
  parameters:
    url: "[email protected]:zapatacomputing/qe-openfermion.git"
    branch: "master"

and then import in the resources argument of your task:

- - name: my-task
    template: template-1
    arguments:
      parameters:
      - param_1: 1
      - resources: [qe-openfermion]

Once that is done you can:

  • use any template from the templates/ directory
  • use tasks which import qeopenfermion in the python code (see below)

Python

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.

Development and Contribution

  • 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.

Running tests

Unit tests for this project can be run using pytest . from the main directory.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •