Skip to main content

Qiskit provider for accessing the quantum devices at Honeywell

Project description

Qiskit Honeywell Provider

LicenseBuild Status

Qiskit is an open-source framework for working with noisy quantum computers at the level of pulses, circuits, and algorithms.

This project contains a provider that allows access to Honeywell quantum devices.

Installation

You can install the provider using pip:

pip3 install qiskit-honeywell-provider

pip will handle installing all the python dependencies automatically and you will always install the latest version.

Setting up the Honeywell Provider

Once the package is installed, you can access the provider from Qiskit via the following import:

from qiskit.providers.honeywell import Honeywell

You will need credentials for the Honeywell Quantum Service. Credentials are tied to an e-mail address that can be stored on disk with:

Honeywell.save_account('username@company.com')

After the initial saving of your account information, you will be prompted to enter your password which will be used to acquire a token that will enable continuous interaction until it expires. Your password will not be saved to disk and will be required infrequently to update the credentials stored on disk or when a new machine must be authenticated.

The credentials will then be loaded automatically on calls that return Backends, or can be manually loaded with:

Honeywell.load_account()

This will load the most recently saved credentials from disk so that they can be provided for each interaction with Honeywell's devices.

Storing a new account will not invalidate your other stored credentials. You may have an arbitrary number of credentials saved. To delete credentials you can use:

Honeywell.delete_credentials()

Which will delete the current accounts credentials from the credential store. Please keep in mind this only deletes the current accounts credentials, and not all credentials stored.

With credentials loaded you can access the backends from the provider:

backends = Honeywell.backends()
backend = Honeywell.get_backend(device)

You can then use that backend like you would use any other qiskit backend. For example, running a bell state circuit:

from qiskit import *
qc = QuantumCircuit(2, 2)
qc.h(0)
qc.cx(0, 1)
qc.measure([0,1], [0,1])
result = execute(qc, backend).result()
print(result.get_counts(qc))

Using a proxy

To configure a proxy include it in the save account configuration:

Honeywell.save_account('username@company.com', proxies = {'urls': {'http': 'http://user:password@myproxy:8080', 'https': 'http://user:password@myproxy:8080'}})

To remove the proxy you can save with an empty dictionary:

Honeywell.save_account('username@company.com', proxies = {})

The 'urls' field must be a dictionary that maps a protocol type or url to a specific proxy. Additional information/details can be found here.

License

Apache License 2.0.

Project details


Download files

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

Source Distribution

qiskit-honeywell-provider-0.2.0.tar.gz (26.5 kB view details)

Uploaded Source

Built Distribution

qiskit_honeywell_provider-0.2.0-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

Details for the file qiskit-honeywell-provider-0.2.0.tar.gz.

File metadata

  • Download URL: qiskit-honeywell-provider-0.2.0.tar.gz
  • Upload date:
  • Size: 26.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for qiskit-honeywell-provider-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fcdeb5678b21b9dadc388ee6eec979c90c6612b6e0d6db381297207aa0a013fc
MD5 98db463ffb96930f44c3d0bb9267a3dc
BLAKE2b-256 f41fcd1c68a72f3f493084b8c0201837eb2c9304df71d8de98d508c153689345

See more details on using hashes here.

File details

Details for the file qiskit_honeywell_provider-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: qiskit_honeywell_provider-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 37.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for qiskit_honeywell_provider-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e820c0605fe66c5fc40325465515f792d45e1c2e56020602e1fd3b47e7d8c6d9
MD5 ae12aa650968b8c52a32596389e5f610
BLAKE2b-256 76934f8eae608313655cb36db078beacc77a4d3105f5774533a6794b1945b32a

See more details on using hashes here.

Supported by

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