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.1.tar.gz
(7.2 kB
view details)
File details
Details for the file qsm-0.1.1.tar.gz.
File metadata
- Download URL: qsm-0.1.1.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 |
daa3ad5680710a539a82ebd4fa4bc7efc35f89f73955db66b7482acedf6d3717
|
|
| MD5 |
986e8f675f3fd506f8c0b225dddac1e0
|
|
| BLAKE2b-256 |
0e46fb1c0700acf9e4372020bd9b09ee2b930fe4ba334784c40168a5bcc0d09d
|