Skip to main content

Cqlib qschool

Project description

天衍量子计算校验平台

安装

目前支持 Python 3.10+ 版本 ,推荐使用 pip 安装:

pip install cqlib-qschool

示例

登录 天衍量子计算校验平台 ,获取链接密钥。并替换下面的 <LOGIN-KEY>

from cqlib import Circuit
from cqlib.mapping import transpile_qcis
from qschool import QSchoolPlatform

circuit = Circuit(2)
circuit.h(0)
circuit.cx(0, 1)
circuit.measure_all()

pf = QSchoolPlatform(login_key="<LOGIN-KEY>", machine_name='tianyan504')
new_circuit, _, _, _ = transpile_qcis(circuit.qcis, pf)

query_id = pf.submit_experiment(new_circuit.qcis, num_shots=1000)
data = pf.query_experiment(query_id, readout_calibration=True)
print(data[0])

License

This project is licensed under the Apache License, Version 2.0. See the LICENSE file for details.

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

cqlib_qschool-0.1.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

cqlib_qschool-0.1.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file cqlib_qschool-0.1.0.tar.gz.

File metadata

  • Download URL: cqlib_qschool-0.1.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for cqlib_qschool-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2bcaaaf658f1b6e7af8afa4e5f7dc5240652a59a047c2e8e1783d272c2a6676e
MD5 d64a9692ca3806705a158e8512738447
BLAKE2b-256 df2cb3d34e3eabd79f573da4812ddea09532b05b4483f9d3da5cfa2f758a082d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cqlib_qschool-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for cqlib_qschool-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7c5d10f5d199f0981321d6826a0a9fed7a2059fcde622185b99340d6e35dd8d
MD5 ccf56c79b2457deae65c31e2575485a8
BLAKE2b-256 047488c505a35ddc1b29724ff5c22140ffc516d4330236a8274f0fdf4d6a1641

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