Skip to main content

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


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.0.tar.gz (2.7 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.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for qiskit_emulator_helper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 021478c488eeff94cce7055c74df2f7fc0a27773055b829ef7800d01b3d1e620
MD5 721f7ce86df27676728a1815d5d8e522
BLAKE2b-256 50339201dd9787946317f99e9b187adbdceff4b43f04c3553d200358acfd8444

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qiskit_emulator_helper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df7bad6ae03aa5e028ba3c8e55c7ce70cfad9a55395908a7dfe79396b5d12ea9
MD5 3d184481b672a82b003f007f586c50e9
BLAKE2b-256 7f793e6908bbbd03a5d788c6fcc1dec0f1f6ddda10a2859d7251cc75322fc211

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