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
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 qiskit_emulator_helper-0.1.2.tar.gz.
File metadata
- Download URL: qiskit_emulator_helper-0.1.2.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a26c11f7281ab535d5c9c1fbbd543cd6a188a1d7b11399124f8e42fc504a9de3
|
|
| MD5 |
a6d0872cd2f3539e7c32b1c58ca03c47
|
|
| BLAKE2b-256 |
d0407f7f8613205a1c13f97bfefc9241b77f4ec423d0e25fe116b7890538ef6e
|
File details
Details for the file qiskit_emulator_helper-0.1.2-py3-none-any.whl.
File metadata
- Download URL: qiskit_emulator_helper-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f8145b550ddfbe2dbd2cb24bcefe47e4c61da16c37a63d6d8f508e773635b44
|
|
| MD5 |
2f50dd083ab51fe84f35c434f1e084dc
|
|
| BLAKE2b-256 |
7f15d7173bd5579fcc42b4a29d835b9d4691bf3f9460ea7ae7c0d94950a96caa
|