Skip to content

joey00072/QuasiQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuasiQ

QuasiQ is a simple quantum computer simulator

Quantum Teleportation Sceenshot

Bell State Example

from quasiq import Circuit



# simplest quantum entanglement
# both qbits are maximally entangled
# so you wil either get |00⟩ or |11⟩ (but not |01⟩ or |10⟩)
 
circuit = Circuit(2)
circuit.h(0)
circuit.cx(0, 1)
circuit.print_circuit()

results = circuit.execute(shots=10,visualize=True)

for result in results:
    print(result)

Output:

                   
        m1     m2  
                   
       ┌───┐        
q_0:───┤ H ├────■───
       └───┘    │   
              ┌─┴─┐ 
q_1:──────────┤ X ├─
              └───┘ 
                    
Measuring qubit 0
Measuring qubit 1
 1  |11⟩  ■■■■■■■■■■□□□□□□□□□□  50.0% chance
 2  |00⟩  ■■■■■■■■■■□□□□□□□□□□  50.0% chance

[1 1]
[0 0]
[1 1]
[0 0]

Installation

git clone https://github.com/joey00072/quasiq.git
cd quasiq
pip install -e .

Algorithms

Features

  • Multi-qubit system simulation
  • Basic quantum gates (X, H)
  • Controlled gates (e.g., CNOT)
  • Qubit measurement
  • Density matrix representation

Checklist

  • Implement basic quantum gates (X, H)
  • Implement controlled gates (CNOT)
  • Create DensityMatrix class for multi-qubit systems
  • Implement qubit measurement
  • Add example GHZ state creation and measurement
  • Implement additional quantum gates (Y, Z, S, T, etc.)
  • Create quantum circuit class
  • quantum teleportation example
  • superdense coding example
  • Add visualization tools for quantum states
  • impliment basic algorithms (ghz, teleportation, etc.)
  • Noise simulation
  • QASM (OpenQASM) support
  • tests :?
  • Add error handling and input validation
  • Implement state vector representation alongside density matrices

Contributing

Contributions are welcome! Be nice and keep it clean.

About

really simple quantum computer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages