Skip to main content

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


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.7.tar.gz (314.5 kB view details)

Uploaded Source

File details

Details for the file qsm-0.1.7.tar.gz.

File metadata

  • Download URL: qsm-0.1.7.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

Hashes for qsm-0.1.7.tar.gz
Algorithm Hash digest
SHA256 58b2e44f1576798ca99ad32d61095a17e5956f26b0b08fbcc323e172fd346e9b
MD5 dcd7a5f9e0e9a1a33f12451d7b18b413
BLAKE2b-256 f4f93c37cbcd1276afd46290aee7bf2196f4101e42681c02fb3cd41fcc0643e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page