Skip to main content

天衍量子计算校验平台

安装

目前支持 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.

Metadata

Release files for cqlib-qschool 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cqlib-qschool 0.1.0
File Size Uploaded Provenance Actions
cqlib_qschool-0.1.0.tar.gz 7.3 kB Without provenance Details for cqlib_qschool-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cqlib-qschool 0.1.0
File Interpreter ABI Platform Actions
cqlib_qschool-0.1.0-py3-none-any.whl Python 3 none any Details for cqlib_qschool-0.1.0-py3-none-any.whl

Total release size: 15.2 kB

Release files / cqlib_qschool-0.1.0.tar.gz

Download URL cqlib_qschool-0.1.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2bcaaaf658f1b6e7af8afa4e5f7dc5240652a59a047c2e8e1783d272c2a6676e
BLAKE2b-256 checksum
How to use checksums
df2cb3d34e3eabd79f573da4812ddea09532b05b4483f9d3da5cfa2f758a082d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release files / cqlib_qschool-0.1.0-py3-none-any.whl

Download URL cqlib_qschool-0.1.0-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e7c5d10f5d199f0981321d6826a0a9fed7a2059fcde622185b99340d6e35dd8d
BLAKE2b-256 checksum
How to use checksums
047488c505a35ddc1b29724ff5c22140ffc516d4330236a8274f0fdf4d6a1641
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Security for cqlib-qschool 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page