SymboliQ is a python framework for Symbolic Quantum computation
Project description
SymboliQ: A python framework for Symbolic Quantum computation
SymboliQ is an extension of Sympy's Quantum Mechanics subpackage. It's the only Python package we know of that allows for simulation of quantum circuits via Dirac Notation. See the poster for an in-depth explanation.
Installation
The SymboliQ package is available via pip
and can be installed in your current Python environment with the command:
pip install symboliq
Getting started
from sympy.physics.quantum import TensorProduct
from symboliq.dirac_notation import DiracNotation, cx, h, i, x, ket_0, ket_1
print(DiracNotation(ket_0))
# prints
#|0>
print(DiracNotation(x * ket_1))
# prints
# (|0><1| + |1><0|)*|0>
bell_state = DiracNotation(
cx * TensorProduct(h, i) * TensorProduct(ket_0, ket_0)
)
print(bell_state.operate_reduce())
# prints
# sqrt(2)*|0>x|0>/2 + sqrt(2)*|1>x|1>/2
Feature requests / Bugs / Questions
If you have questions, feature requests or you found a bug, please file them on Github.
Project details
Release history Release notifications | RSS feed
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 Distribution
symboliq-0.0.2-py3-none-any.whl
(10.5 kB
view details)
File details
Details for the file symboliq-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: symboliq-0.0.2-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9534fdaaa72eefa5c9e1d36ecc67f687bca394bba24791ac6b6a2dfead7bd737 |
|
MD5 | aa3ae37d9278f5d22e55445d619fab87 |
|
BLAKE2b-256 | 6a4f46957d3e29912a9ee4a85c22dee880911d1ffe6a14a67b885573ebd133e7 |