Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hivqe_qiskit_function_utils-0.2.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file hivqe_qiskit_function_utils-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hivqe_qiskit_function_utils-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e3873ae03cf5455284c552da906318d04402e6fdfaf81d587fa701c0c1a5c6d1
MD5 b38fe99b2311df976026b72f5ea7017e
BLAKE2b-256 e140a607561955f7986ff54ea0b72e62076d8308dc935a3985d019ff1c274fec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page