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

Uploaded CPython 3.12Windows x86-64

unitarylab-1.0.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (30.8 MB view details)

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

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

Uploaded CPython 3.12macOS 11.0+ ARM64

unitarylab-1.0.0-cp312-cp312-macosx_10_13_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

unitarylab-1.0.0-cp311-cp311-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.11Windows x86-64

unitarylab-1.0.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (30.3 MB view details)

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

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

Uploaded CPython 3.11macOS 11.0+ ARM64

unitarylab-1.0.0-cp311-cp311-macosx_10_9_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

unitarylab-1.0.0-cp310-cp310-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.10Windows x86-64

unitarylab-1.0.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (28.8 MB view details)

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

unitarylab-1.0.0-cp310-cp310-macosx_11_0_arm64.whl (4.2 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

unitarylab-1.0.0-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.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: unitarylab-1.0.0-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.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e367095f8a0fa91ebfc1cebcfe6f2d2b07135f08ccb200f16d3c5b6da7d2fe29
MD5 1ddc6f4bbdfa84dc8670612f3d653a48
BLAKE2b-256 a73aaf81b4259f13a6d526bd6c9bc9adfc0c12208d59078736566d36cc38922d

See more details on using hashes here.

File details

Details for the file unitarylab-1.0.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.0.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c28ccfc074a7d0c5a9f052ceaa9da720b3450c86687ad74e3218d40f4631715c
MD5 2674b757a29fde89c44ccf0a48bd385d
BLAKE2b-256 7cd1a5b79bad231819ee7b6bf23bc0a33f0f70d15d78d69911366953a36348c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unitarylab-1.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7bdb3bc216711ebb11004bd21b7e763be19bd3b50dbc51f6d7e89d9a1232d4da
MD5 f77025465bbed4ca7b59662849839bc0
BLAKE2b-256 81e908d9941971fda0bc6063f79d9c4c04292ed5b88847db753dd00135478b8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unitarylab-1.0.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 a4b11bae0d47fa5ec69fca64604c23cba234606805a35ef113d7486873eefc34
MD5 7a81d06514a7dbce830c9ca832af06af
BLAKE2b-256 3a81794f188f13b53e5d35a42d551bf262b7b4bc17844524f3a797fd2c505d13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unitarylab-1.0.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 4.0 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.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 30e7fefa98e2728802d2c1e34cb788b7de290866b6e27a5f219f214cc1b147e6
MD5 468a9e144bfec82303642a8512a930bb
BLAKE2b-256 f3050801b919135adcb3cc021c01c83d36c66bcea5c5ba1b09c61215fe6d2b4b

See more details on using hashes here.

File details

Details for the file unitarylab-1.0.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.0.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1e094ffcee853991aeca753c47e81ca5b2382b8325559bb3071ca96322063673
MD5 72b1e5e367716215850b94ac1bc65dbb
BLAKE2b-256 4e26c5c314c507db543aac22f95c6d504d2675be6f0c85f05cecc364edb586ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unitarylab-1.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4b4e312967daa6233594ac907383604fc9e70a2c4b48603529ed973d891bf31
MD5 c89082a55c09ccf53f043de2d8618c1a
BLAKE2b-256 4eedf8763408d644e2952184719ade90e032a12c30d73c04a4aa17e1e85bcc4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unitarylab-1.0.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 390dc5ac393bca798ba1e6023713cc64c5f5d4dd72c062a95482cde6e6b92145
MD5 2c49802edf9739372a590b1a6cf366d9
BLAKE2b-256 9acf9afaa1cf1a2f0c5ccf5ea2574a9215a08afcd46d5f2533b93eb998a7c0ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unitarylab-1.0.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 4.0 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.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cdde058ca42c921f492c47a2c3391f9d71774f5a116fc14dbbf484441d7b91a6
MD5 7f2db7f42bb42d1edef58c5cf79b5dce
BLAKE2b-256 f9aa4651df1d78fb6b1d3c098ff583836b927794133983c39e54ac00c15f41af

See more details on using hashes here.

File details

Details for the file unitarylab-1.0.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.0.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c88163fa1d11efafbf3bae82df3eb5bdd9c2544ba403fec3d363588483aee6fe
MD5 fdb8eb46b36431650577eac400ca5fb8
BLAKE2b-256 77c083eb9d29e2224c231b409f359a4200b7abc9f9b1ddbed76cafbc06f888c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unitarylab-1.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1eac2257e5e282cf2e54e12f803bc695058d4097a70b89f99f1f6fc24eba7d48
MD5 43221fac0c22f24128cabaa0e0f9f2c7
BLAKE2b-256 93a11d40f9ff0dfe3b94f289ed79bc5073e803a72bc4f2aa6065c7d40f0a3533

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unitarylab-1.0.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 caad0037b1039aaac89139a5ef8a586a8db9c4cbadc42ee8d2b92e9dc9940383
MD5 3fe52a5d694d1df9466d716b4095ae29
BLAKE2b-256 3f267daf791942c6ce2f1d0adcb0cf40741cf46c46fab831c9aa9a33f872d870

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