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.3.tar.gz
(7.2 kB
view details)
File details
Details for the file qsm-0.1.3.tar.gz.
File metadata
- Download URL: qsm-0.1.3.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 |
f05ced91ab64e01eeb015db6afccf3cabfe7c1f4fa35a752ee382c7cd7a4d303
|
|
| MD5 |
61ab7f44634bc98ece35cadd91664dec
|
|
| BLAKE2b-256 |
0c08ba1c4a8c9593d4b2bb743e7134a8c9567406a911a9eaa40654e75f813135
|