A lightweught quantum computing simulator
Project description
Simple and lightweight Quantum Computing simulator built with python3 for educational purposes.
Installation
pip install qclight
Example
"""Main"""
from qclight.circuit import QCLVisualCircuit
def main():
"""Simple main function"""
circuit = QCLVisualCircuit(4)
circuit.h(0)
circuit.cx(0, 3)
circuit.barrier()
circuit.x(2)
print(circuit)
if __name__ == "__main__":
main()
TODO
- Improve performance with a custom range function for fixed bits
- Measure qubit
- Add more examples
- Print ascii of circuit
- Print svg of circuit
- Circuit composition
- Circuit to gate
- SumCircuit
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 Distribution
qclight-0.0.2.tar.gz
(14.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
qclight-0.0.2-py3-none-any.whl
(19.7 kB
view details)
File details
Details for the file qclight-0.0.2.tar.gz.
File metadata
- Download URL: qclight-0.0.2.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d37ee5d199ad301b3f3ecb7a54aef258578f0b63eb5a1397f5b045ba8e9dc44
|
|
| MD5 |
6be3d9cac90db03c0668f48fae485e66
|
|
| BLAKE2b-256 |
c1ed31a7f9a8400faaa799b7eda6a44a63486e457bc5490c0ec3624972839334
|
File details
Details for the file qclight-0.0.2-py3-none-any.whl.
File metadata
- Download URL: qclight-0.0.2-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70979ff2fcd233ac9a0b152354def2b9cc291c4f689d5e4907274dc42d37bfdb
|
|
| MD5 |
a97a072a8e54b3dfdea39d4ece20f118
|
|
| BLAKE2b-256 |
63c5eecfca3c00377017eea7e0cfe364ba807bca48bc1c759d4e30e78118dae2
|