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.2.tar.gz
(7.2 kB
view details)
File details
Details for the file qsm-0.1.2.tar.gz.
File metadata
- Download URL: qsm-0.1.2.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8dfccb1b9678f0dcef50bed32aa6bb992f57759a910aa2fc2656c2bbf7976b75
|
|
| MD5 |
ee7289a29960edf6c9ed56ad24788d56
|
|
| BLAKE2b-256 |
f232c3caed5751c4b5a07f7bceea87a3a0fcb8f5fece74e07c549e9ad6ce1a74
|