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.0.1-cp312-cp312-win_amd64.whl (3.9 MB view details)

Uploaded CPython 3.12Windows x86-64

unitarylab-1.0.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (31.6 MB view details)

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

unitarylab-1.0.1-cp312-cp312-macosx_11_0_arm64.whl (4.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

unitarylab-1.0.1-cp312-cp312-macosx_10_13_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

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

Uploaded CPython 3.11Windows x86-64

unitarylab-1.0.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (31.0 MB view details)

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

unitarylab-1.0.1-cp311-cp311-macosx_11_0_arm64.whl (4.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

unitarylab-1.0.1-cp311-cp311-macosx_10_9_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

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

Uploaded CPython 3.10Windows x86-64

unitarylab-1.0.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (29.4 MB view details)

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

unitarylab-1.0.1-cp310-cp310-macosx_11_0_arm64.whl (4.3 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

unitarylab-1.0.1-cp310-cp310-macosx_10_9_x86_64.whl (4.6 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: unitarylab-1.0.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 3.9 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.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c05afa041c4ab6033568f96876abf750ec80a590dce8fab7074de849a0ea7ac2
MD5 813473ffa9eeab10eaa9f8d4e59bfe12
BLAKE2b-256 247942b9b8edd0673ac4a57dc4f3ddc2ba7cd7b46e2395df732706c3b027a7c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unitarylab-1.0.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d750e7db72c4110fc5f9dbe9ebc4acd19ec96d59182b16609ada42bdb1fb3adc
MD5 8e88c8a5783255dec9873fa1b0ae792d
BLAKE2b-256 d1511dea4a7d8a197a14fcb50308e1a79726c5bc0c2e4cd5495663f7d9a7d66a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unitarylab-1.0.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2498980a06e58e4de3f156c4a980056cac1ffe171629aca6c5c6e6e969fa824c
MD5 902ee455cd113a8f2101ab62c741ac62
BLAKE2b-256 924d2443f3b9c7636cea9974795f3dbf90066de62589481882c096e39dedf679

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unitarylab-1.0.1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 6dfb3db36487e3c5e3472b3cc1d36b1edf2e90810a3ea44a2cf458803546cf15
MD5 432e080e8b5330ee6d8f7ec447b54232
BLAKE2b-256 83ec20017c7a85e5d8240fb810e5c02b02ceed7496468ff85b7e1274f079dc04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unitarylab-1.0.1-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.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4b974873611167dc3f0cb29dc8bf9d57ae8daf9cd6dc920d6e3b1d7c92ff9e85
MD5 7017b7e0c3edb3e2f58d97035ec8ab9b
BLAKE2b-256 c4d717d24299f7b8429b76506a1483c87faebbd72e2aeb11bc4fd564a665bae1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unitarylab-1.0.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 352c75b391eb28c8e34e7975e89392aa7234d6a3907267dcec34bf919b8e5e5d
MD5 1069f08fe0f6d0b1605dcabc6dcb4a35
BLAKE2b-256 a36af2c5727178adc39f5205dd6a9f0aeeb609a535e4aa95bb744ade6e618fad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unitarylab-1.0.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bbee3ba26b32883c94f65ff1dcceb2c5a872cf61ee9ed233d8a65b30aaca735f
MD5 0c268eca3f367240027719924f46ed59
BLAKE2b-256 069719bf05825fa3fd7d6492507baf2e30c948ff7012f924c56049c2af4de1ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unitarylab-1.0.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2d0e9ac34b09ab06e5b6f87cf835569a26ef54885cc4e5322fee9ab2247742c1
MD5 dfd09c1222ffbf42fd7a2057df571b81
BLAKE2b-256 b12612082372f91aee242a879f6b5e2e1d25233e4a0f6e50f27f90c4c9f723d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unitarylab-1.0.1-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.0.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 97224cf3657feb653c6f4b30585e3e4bf3b50ae8a5156032b05467a6a9ff5b9a
MD5 b2c242f4e4bf7bde85293bef3d6c8afe
BLAKE2b-256 261f473287e1e2f180489b7a18a7be555b70ca5f5859abce8fc1ef99b4e4fddf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unitarylab-1.0.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 52f7d35e9d7380e700f43e5abacc68fff02b15fce8543f5cfc5d31159d6a9dca
MD5 e97f96e9c370c5c74d844c5ec067183d
BLAKE2b-256 82974f3a0caaebe9b597ba91dddb9e8e4e697b987d63b06805afb70c5d4a8891

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unitarylab-1.0.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 935c3187b485c933d509ab1f5e3d4b59ac1d041c88f959dfe98eeda95beed314
MD5 a1ab62ebbee38501807b7dcc0d299a61
BLAKE2b-256 e123ae8ae4e0d91b3359e791790680236a21ff021adb5bbfef7c8639af14430f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unitarylab-1.0.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 27d450895b2f6b7a7abad31d79e6637f8ffcab0a01b2ec9bddc86fcd2290c14c
MD5 0d6697c46f6e70709edd2943dfe4c1c0
BLAKE2b-256 ccc5d9d30beca67c5875d8626f3e6c08beb4456c12c6a809474a297740aff9d2

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