z-quantum-vqe
is a basic implementation of Variational Quantum Eigensolver (VQE) to be used with Orquestra – a platform for performing computations on quantum computers developed by Zapata Computing.
In order to use z-quantum-vqe
in your workflow, you need to add it as a resource:
resources:
- name: z-quantum-vqe
type: git
parameters:
url: "git@github.com:zapatacomputing/z-quantum-vqe.git"
branch: "master"
and then import in a specific step:
- - name: my-task
template: template-1
arguments:
parameters:
- param_1: 1
- resources: [z-quantum-vqe]
Once that is done you can:
- use any template from
templates/
directory - use tasks which import
zquantum.vqe
in the python code (see below).
Here's an example how to do use methods from z-quantum-vqe
in a Python task:
from zquantum.vqe.ansatz import build_circuit_template
ansatz = build_circuit_template(
ansatz_type='Singlet UCCSD',
n_mo=1,
n_alpha=1,
n_beta=1,
transformation='Jordan-Wigner')
Even though it's intended to be used with Orquestra, you can also use it as a standalone python module.
In order to install it run pip install .
from the src/
directory.
You can find the development guidelines in the z-quantum-core
repository.
In order to run tests please run pytest .
from the main directory.