Client-side utilities for use with Qunova Computing's HI-VQE Qiskit Function.
Project description
HI-VQE Qiskit Function Utilities
This package is intended to provide some utilities to help users of Qunova's HI-VQE Qiskit Function.
Current Features
Helps licensed users submit their license token to the function with encryption.
The below example shows how this package can be used to wrap the HI-VQE Qiskit Function retrieved from the Qiskit IBM Catalog to properly submit your token:
import math
from qiskit_ibm_catalog import QiskitFunctionsCatalog
from hivqe_qiskit_function_utils import FunctionWrapper
catalog = QiskitFunctionsCatalog(token="your_qiskit_functions_catalog_token", channel="ibm_quantum_platform", instance="your_ibm_instance")
molecule_geometry = f"""
O 0 0 0;
H {-0.957*math.sin(math.radians(104.5)/2.0)} {0.957*math.cos(math.radians(104.5)/2.0)} 0;
H {0.957*math.sin(math.radians(104.5)/2.0)} {0.957*math.cos(math.radians(104.5)/2.0)} 0
"""
hivqe = FunctionWrapper(token="your_hivqe_license_token", function=catalog.load("qunova/hivqe-chemistry"))
job = hivqe.run(
geometry=molecule_geometry,
backend_name="ibm_torino",
max_states=10000,
max_expansion_states=1000,
hivqe_options={"ansatz": "epa", "max_iter": 10},
)
result = job.result()
logs = job.logs()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hivqe_qiskit_function_utils-0.2.0.tar.gz.
File metadata
- Download URL: hivqe_qiskit_function_utils-0.2.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
978f6a0b1221595f3453912267ee855e1a3b0a24ba1b4a4e4c65d2c1b1b6a37a
|
|
| MD5 |
3e9a63f9f620bc9640a994038f97f0bc
|
|
| BLAKE2b-256 |
a918669674eab8ac6e43454da0edbb10fbed3063e7f7ca8114386f0391bed2b6
|
File details
Details for the file hivqe_qiskit_function_utils-0.2.0-py3-none-any.whl.
File metadata
- Download URL: hivqe_qiskit_function_utils-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3208bbb69c4ce6e68345ed3b495f916fca535160763df1e37e55602e1238bcae
|
|
| MD5 |
d7f470fd1487da3476d026f8fa575a54
|
|
| BLAKE2b-256 |
8a99045a841924b79efde7f6687c2b88b070674bce6c1471a00ef437ce7a102f
|