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.4.tar.gz
(7.3 kB
view details)
File details
Details for the file qsm-0.1.4.tar.gz.
File metadata
- Download URL: qsm-0.1.4.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f0bd71486b49c562bd1bfba9f4ba544e7ed06aeaa2f6b16d5e5c7d6ca01ddf5
|
|
| MD5 |
b7168cd1c5f3568321e05577b11d96bc
|
|
| BLAKE2b-256 |
b0716ac2145c7df1c416813d1c04ac0aa21b9d6d7a0e39477ad8fd3f8fe1faa7
|