예제 #1
0
 def __init__(self):
     BasicGate.__init__(self)
     self.cnt = 0
예제 #2
0
 def __init__(self):
     BasicGate.__init__(self)
     self.cnt = 0
     self._matrix = [[0, 1, 0, 0], [1, 0, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]
예제 #3
0
 def __init__(self, *args):
     BasicGate.__init__(self)
     self.params = args
예제 #4
0
 def __init__(self):
     r"""
     Abstract XmonGate class to distinguish mon from regular proejctq gates.
     """
     BasicGate.__init__(self)