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

Uploaded Source

File details

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

File metadata

  • Download URL: qsm-0.1.9.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.9.tar.gz
Algorithm Hash digest
SHA256 ebde36b767e67a691795ff33be12cc49819e4587f57ca5872d339c1031341d8a
MD5 fb4cd3f133fbff890d3716be897123b8
BLAKE2b-256 7933eb1ab5aa441a34e817a56dfed97bbc2531e8432d6863e4fa92a51c1ba594

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