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.6.tar.gz
(314.3 kB
view details)
File details
Details for the file qsm-0.1.6.tar.gz.
File metadata
- Download URL: qsm-0.1.6.tar.gz
- Upload date:
- Size: 314.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 |
9ae8def4bc09fe8f7a98f0e2ad3083e0a34f44299ac5d318738f7aba1068920a
|
|
| MD5 |
6dfd05904fd0f574f051d45ab76839bc
|
|
| BLAKE2b-256 |
78685682102f4b80edb741eb0d47dfbb2239a6b9ff361652cfabd976195d6b58
|