This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import random | |
class Qubit: | |
def __init__(self, a = 1, b = 0): | |
'''Initialize a single qubit''' | |
self.zero = complex(a) | |
self.one = complex(b) | |
def xgate(self): |