No project description provided
Project description
Example of my module
import qsm
qc = qsm.QuantumCircuit(2)
qc.apply_gate(qsm.H, 1) # apply the hadamar gate
qc.apply_controlled_gate(qsm.CX, 0, 1) # 0 is the target qubit and 1 is the controll qubit
print(qc.get_state())
print(qc.prob())
print(qc.measure())
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
qsm-0.1.0.tar.gz
(7.1 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
qsm-0.1.0-py3-none-any.whl
(9.1 kB
view details)
File details
Details for the file qsm-0.1.0.tar.gz.
File metadata
- Download URL: qsm-0.1.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b89137474c6bff2eb87cdd25ab2d66ebc8f44262a5f86fe06e0ac4e75638a61
|
|
| MD5 |
d05c3883f6e4311475fe5b7a7cc2f756
|
|
| BLAKE2b-256 |
fe367999eaf82a5be274417e31c89d5b3a0c3fe29f35935e8dbab42b22cdbd72
|
File details
Details for the file qsm-0.1.0-py3-none-any.whl.
File metadata
- Download URL: qsm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab6dd85b578ddca0bac92764b2b21722d6015ccc1918054bbe39efdb1bb828a9
|
|
| MD5 |
0a65606dae5d2413f58db7e03913b0d5
|
|
| BLAKE2b-256 |
3abf159d8cf05cd62f3f313d62565136e3d0862e637faadccc7558d5b89d514e
|