PyQudit
PyQudit is a Python package for using generalised and universal versions of quantum gates, in N-dimensions. Enables building simple quantum circuit simulations on qudit logic using higher dimensional gates.
Getting Started
Concept
Mainstream QuantumComputing uses qubits which operate in a two dimensional Hilber space. Qudits are their higher dimensional equivalents with better informaiton density and potential for hgher efficiency. PyQudit includes the qudit versions of fundamental quantum gates, useable over any dimension* as specified by the user. It can be used to understand the behaviour of qudit gates as also to build higher dimensional circuits for experimentation.
*refer gate functions
Install
The latest stable version of PyQudit is available on PyPI and can be installed with pip. It is recommeded to install in your quantum computing python environment, alongside existing packages.
pip install pyqudit
Build Locally
Alternatively, you can build the package wheel from source and then install it via pip.
pip3 install --upgrade pip
pip3 install --upgrade setuptools
git clone https://github.com/Ordoptimus/pyqudit.git
cd pyqudit
python3 setup.py bdist_wheel
Replace [version] with the latest version as seen in the wheel file in /bdist_wheel
pip3 install dist/pyqudit-[version]-py3-none-any.whl
Use
import pyqudit.qudit as pq
Use dir(pq) to show all package methods.
Sample
>>> import pyqudit.qudit as pq
>>> d = int(input('Enter Dimensions: '))
Enter Dimensions: 3
>>> print("\n---CX's Pauli Matrix---")
>>> print(pq.CXd_pauli(d))
---CX's Pauli Matrix---
[[1 0 0 0 0 0 0 0 0]
[0 1 0 0 0 0 0 0 0]
[0 0 1 0 0 0 0 0 0]
[0 0 0 0 0 1 0 0 0]
[0 0 0 1 0 0 0 0 0]
[0 0 0 0 1 0 0 0 0]
[0 0 0 0 0 0 0 1 0]
[0 0 0 0 0 0 0 0 1]
[0 0 0 0 0 0 1 0 0]]
Documentation
Refer the official documentation for detailed examples and syntax.
Metadata
Release files for pyqudit 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyqudit-1.0.1.tar.gz | 5.3 kB | Without provenance | Details for pyqudit-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyqudit-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for pyqudit-1.0.1-py3-none-any.whl |
Total release size: 12.4 kB
Release files / pyqudit-1.0.1.tar.gz
| Download URL | pyqudit-1.0.1.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0ab8e27ef5939567f4f0ba38d695d973288922b9f335f8387d4cd12f6fd4940
|
|
BLAKE2b-256 checksum How to use checksums |
fad40ca4184dfbbd886092c28bc5ecc4e3219bd83665e66ae72f44f1c1201cc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.9
|
Release files / pyqudit-1.0.1-py3-none-any.whl
| Download URL | pyqudit-1.0.1-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9bf659260b32d4a84847141179a33a7fb719f8a0e039057a0bbe133f30bcfa3
|
|
BLAKE2b-256 checksum How to use checksums |
43daaa1d5579620ebd174ad07f8275c9f63a401696efd1f02569047155a4254e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.9
|
Security for pyqudit 1.0.1
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.