Skip to main content

A helper library to easily find, propose, and get Qiskit's fake backends (emulators).

Project description

Qiskit Emulator Helper

A utility library for easily searching, recommending, and retrieving fake backends / emulators from qiskit-ibm-runtime.

Installation

To install the library from the local source code, clone the repository and run pip:

pip install -e .

Alternatively, users can install it via:

pip install qiskit-emulator-helper

Usage

After installation, you can import and use the library with the following name:

import qiskit_emulator_helper as qeh

# 1. List all available emulators
print("--- Listing all available emulators ---")
qeh.show_available_backends()

# 2. Recommend an emulator for a 7-qubit circuit
print("\n--- Proposing an emulator for 7 qubits ---")
qeh.propose_backends(num_qubits=7)

# 3. Retrieve a specific emulator by name
print("\n--- Getting the 'fake_manila' emulator ---")
try:
    backend = qeh.get_backend_by_name('fake_manila')
    print(f"Successfully retrieved: {backend.name}")
    print(f"Number of qubits: {backend.target.num_qubits}")
except ValueError as e:
    print(e)

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_emulator_helper-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

qiskit_emulator_helper-0.1.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file qiskit_emulator_helper-0.1.1.tar.gz.

File metadata

  • Download URL: qiskit_emulator_helper-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for qiskit_emulator_helper-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d2a022ba712d5ef435589be35535723606f7b2b6932b089e3ce1ffb8b06e8c91
MD5 c6e40d97a014be8ce3086e6113b3965c
BLAKE2b-256 eab47659a3d5fb10cd41c94821ef8fc15d40dba83ca57f5c8bed1372fc43c65e

See more details on using hashes here.

File details

Details for the file qiskit_emulator_helper-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for qiskit_emulator_helper-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 59b518a18b6a47602ffad590d554a45532497e4b9cea9a53efe82e35317bfa10
MD5 ca035e6ac0b51818e7e7365cfe8527a6
BLAKE2b-256 8c667cbe33addb50339d225b4780d5af32121971396f42a830444b52dc4a9b45

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