Esempio n. 1
0
 def __init__(self):
     BasicGate.__init__(self)
     self.cnt = 0
Esempio n. 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]]
Esempio n. 3
0
 def __init__(self, *args):
     BasicGate.__init__(self)
     self.params = args
Esempio n. 4
0
 def __init__(self):
     r"""
     Abstract XmonGate class to distinguish mon from regular proejctq gates.
     """
     BasicGate.__init__(self)