QuasiQ is a simple quantum computer simulator
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]
git clone https://github.com/joey00072/quasiq.git
cd quasiq
pip install -e .
- Bell States
- Quantum Teleportation
- Superdense Coding
- Deutsch Algorithm
- Deutsch Jozsa Algorithm
- Quantum Fourier Transform
- Grover's Algorithm
- Shor's Algorithm
- Multi-qubit system simulation
- Basic quantum gates (X, H)
- Controlled gates (e.g., CNOT)
- Qubit measurement
- Density matrix representation
- 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
Contributions are welcome! Be nice and keep it clean.