A helper library to easily find, propose, and get Qiskit's fake backends (emulators).
Project description
Qiskit Emulator Helper
Một thư viện tiện ích giúp dễ dàng tìm kiếm, đề xuất và lấy các backend giả lập (fake backends / emulators) từ qiskit-ibm-runtime.
Cài đặt
Để cài đặt thư viện từ mã nguồn cục bộ, sao chép repository và chạy pip:
pip install -e .
Người dùng có thể cài đặt bằng lệnh:
pip install qiskit-emulator-helper
Cách sử dụng
Sau khi cài đặt, bạn có thể import và sử dụng thư viện với tên mới.
import qiskit_emulator_helper as qeh
# 1. Hiển thị tất cả các trình giả lập có sẵn
print("--- Listing all available emulators ---")
qeh.show_available_backends()
# 2. Đề xuất trình giả lập cho mạch 7 qubit
print("\n--- Proposing an emulator for 7 qubits ---")
qeh.propose_backends(num_qubits=7)
# 3. Lấy một trình giả lập cụ thể bằng tên
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.0.tar.gz.
File metadata
- Download URL: qiskit_emulator_helper-0.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
021478c488eeff94cce7055c74df2f7fc0a27773055b829ef7800d01b3d1e620
|
|
| MD5 |
721f7ce86df27676728a1815d5d8e522
|
|
| BLAKE2b-256 |
50339201dd9787946317f99e9b187adbdceff4b43f04c3553d200358acfd8444
|
File details
Details for the file qiskit_emulator_helper-0.1.0-py3-none-any.whl.
File metadata
- Download URL: qiskit_emulator_helper-0.1.0-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 |
df7bad6ae03aa5e028ba3c8e55c7ce70cfad9a55395908a7dfe79396b5d12ea9
|
|
| MD5 |
3d184481b672a82b003f007f586c50e9
|
|
| BLAKE2b-256 |
7f793e6908bbbd03a5d788c6fcc1dec0f1f6ddda10a2859d7251cc75322fc211
|