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.5.tar.gz
(314.5 kB
view details)
File details
Details for the file qsm-0.1.5.tar.gz.
File metadata
- Download URL: qsm-0.1.5.tar.gz
- Upload date:
- Size: 314.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7304fb8173f37c922058b3fcbbb4783120feec69d2ccfb1bf5d4bea19472525
|
|
| MD5 |
ae3f7e9d3011b90206d4d3b940f1c60a
|
|
| BLAKE2b-256 |
d2bdb0fa53425c0ae540825ac6afa42496be14b8bdd70a8fd77a6de904476941
|