def __init__(self, L, J, Hx):
    cy.LinOp.__init__(self, 'mv_elem', (2 ** L), cy.Type.Double, cy.Device.cpu)
    self.J = J
    self.Hx = Hx
    self.L = L
def __init__(self, L, J, Hx):
    cy.LinOp.__init__(self, 'mv_elem', (2 ** L), cy.Type.Double, cy.Device.cpu)
    self.J = J
    self.Hx = Hx
    self.L = L