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