Skip to main content

A Python package for quantum simulator from UnitaryLab.

Project description

unitarylab

Unitarylab is the quantum simulator SDK from UntiaryLab.

Installation

pip install unitarlab

Quick Start

Create a Quantum Circuit

from unitarylab import Circuit, Register, ClassicalRegister

qr = Register('qr', 2)
cr = ClassicalRegister('cr', 2)
qc = Circuit(qr, qc)

or simply

from unitarylab import Circuit

qc = Circuit(2)

Add quantum gates to the Circuit

qc.h(0)
qc.cx(0,1)

Execute the Circuit

result = qc.execute()

print(result.state)

Visulize the Circuit

qc.draw() # picture of the Circuit

qc.analyze() # txt information of the Circuit

License

License: LicenseRef-UnitaryLab-LICENSE. The Chinese license text is authoritative; the English version is provided for reference only.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

unitarylab-1.1.0-cp312-cp312-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.12Windows x86-64

unitarylab-1.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (32.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

unitarylab-1.1.0-cp312-cp312-macosx_11_0_arm64.whl (4.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

unitarylab-1.1.0-cp312-cp312-macosx_10_13_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

unitarylab-1.1.0-cp311-cp311-win_amd64.whl (4.1 MB view details)

Uploaded CPython 3.11Windows x86-64

unitarylab-1.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (31.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

unitarylab-1.1.0-cp311-cp311-macosx_11_0_arm64.whl (4.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

unitarylab-1.1.0-cp311-cp311-macosx_10_9_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

unitarylab-1.1.0-cp310-cp310-win_amd64.whl (4.1 MB view details)

Uploaded CPython 3.10Windows x86-64

unitarylab-1.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (30.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

unitarylab-1.1.0-cp310-cp310-macosx_11_0_arm64.whl (4.4 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

unitarylab-1.1.0-cp310-cp310-macosx_10_9_x86_64.whl (4.7 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file unitarylab-1.1.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: unitarylab-1.1.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 4.0 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for unitarylab-1.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4ed3bf2991494b635652199528e3748152337c811ed463207d397d3912333baa
MD5 8913631aa4b4d0cd2efc305cb03a6504
BLAKE2b-256 e7dea3434776252ad2785d97fcfac92de3d205384d7b1ae4e51e19fa158450c3

See more details on using hashes here.

File details

Details for the file unitarylab-1.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for unitarylab-1.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 82d34b46d55dbca0abb0eddcb5bb2992e0358b2b44bd135045e07bedce347823
MD5 a1b241b16a1f12403a457af57abd85a6
BLAKE2b-256 13b9cf074c09ab68fedfa97a250cb72abae3849f3d815eca9ee87ca8b5630e1d

See more details on using hashes here.

File details

Details for the file unitarylab-1.1.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for unitarylab-1.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16bea1e23620d1d526592794bd323ea19e98f5dcee39fc5535616a8f169922f6
MD5 035fcbe0579fe23faad4256e6b5d6451
BLAKE2b-256 4540007d68b2fc42d536c087eb9d1d307224e2fd355f396df56a81c36d2df0fd

See more details on using hashes here.

File details

Details for the file unitarylab-1.1.0-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for unitarylab-1.1.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 2fa0895bda61ec500d9b89fa3b80ebc61ac2acf81df852b44e640d4895ba73ef
MD5 73c77768c8cccf54a5a05769cadd1e86
BLAKE2b-256 bd1174f3918e1ba4850ba29c58e9e23acdc63cec76b6d588b8e92ce2914e42c2

See more details on using hashes here.

File details

Details for the file unitarylab-1.1.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: unitarylab-1.1.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for unitarylab-1.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d2314582457856dab71781ed6d21c31932eb26a4e22904e699470fcbb1625d37
MD5 4e08080f174a43fd94311bd9224c9205
BLAKE2b-256 bb4b153be18b63f70ce62b5d555ce2e3529881dfa9010a72e36c837c4ee3abf4

See more details on using hashes here.

File details

Details for the file unitarylab-1.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for unitarylab-1.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 da80cae9787e2dd31d2263319ac3a1a2d1dd33b58e4ee9a885f7b8b0e5110a3b
MD5 33fb61dcbaff5cd9019f0a59e02df37b
BLAKE2b-256 f61da9850db615bd55fc3457f9153dd45112e46daf5be0b80e41ba4c51be3026

See more details on using hashes here.

File details

Details for the file unitarylab-1.1.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for unitarylab-1.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b800f80777e43f8df3203b162da83e7c77c4bdd3e157e71545d824e4f8dccdd
MD5 f198c3b519cfc338c4e6bd59480bf1d8
BLAKE2b-256 6a0481940253c386ea4f68366739fb6bf7697b9b8457c81f49a568b12f5f26d2

See more details on using hashes here.

File details

Details for the file unitarylab-1.1.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for unitarylab-1.1.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1a95634cab31c2d56e182a75b87496aba69fe170d21c226a332c056fe2dc5279
MD5 0f50f583929a9cc52a16e465e1776fa5
BLAKE2b-256 b414d3d2c2b24f82d6b37dbc545148c3dbc1e52b64e2b60bad163e642572a688

See more details on using hashes here.

File details

Details for the file unitarylab-1.1.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: unitarylab-1.1.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for unitarylab-1.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bbc1959cfa6e5f1d36af6ca02e371b7a9e383a35f0f0214c57507806f2c34dd2
MD5 8ea5e446bc6d72d830151610ca9082d8
BLAKE2b-256 06f3f6fc4e0d555c55ea11d1f7359a19f1a23a06e2790037273fca4e1bc7517c

See more details on using hashes here.

File details

Details for the file unitarylab-1.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for unitarylab-1.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9e62fd9ec73dfddcdccc15f75f58911f0c7d73b0b13cd5974ac0ff6d1cbe92a9
MD5 da5dcc235ceb00aaf4675d96fd4ff5e1
BLAKE2b-256 07f40dbb78bba6ab322ee112e775900a5cd60f91d8a9d4d684dce1dfc4cfeb37

See more details on using hashes here.

File details

Details for the file unitarylab-1.1.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for unitarylab-1.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0074b86384b0fe01d0a4b0c87af1b45f12c702cf1e61c838c69e3bd115b266c9
MD5 5c08a3ecdc95dcda453f5536e77c11ad
BLAKE2b-256 3092f931a43a007a9111dc3a8bdefb9b830d1899456d69f38e69ef0955f613e1

See more details on using hashes here.

File details

Details for the file unitarylab-1.1.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for unitarylab-1.1.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f4390dd386041a51537d3f3b0263b8e986efe7a9e7a49358096daa82aac6b313
MD5 51a38657949c9a4baeb8ec5c8eeff06c
BLAKE2b-256 c05f551498396ab3716aa32cba01b97a225146a989791f67acd4d0d99ec1333c

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