Skip to content

Instantly share code, notes, and snippets.

View prince-ph0en1x's full-sized avatar
🤖
Quantum Intelligence

Aritra Sarkar prince-ph0en1x

🤖
Quantum Intelligence
View GitHub Profile
@prince-ph0en1x
prince-ph0en1x / qubit.py
Last active August 27, 2017 12:00 — forked from limitedmage/qubit.py
Python Quantum Computing simulator
from random import random
class QuDit:
nD = 0 # Hilbert Space Dimension
nQ = 0 # Number of Qudits used in simulation
state = []
# Initialize
def __init__(self, D, Q):