Magnetic element comprising: a magnetic tunnel junction element including a tunnel barrier layer sandwiched between a first ferromagnetic layer having a first magnetization and a second ferromagnetic layer having a second magnetization; a field device configured to generate an external magnetic field in a first field direction (-Hx) and alternatively in a second field direction (Hx), the external magnetic field being adapted for varying the orientation of the first magnetization while the orientation of the second magnetization remain unchanged; the first ferromagnetic layer being configured such that the first magnetization comprises a stable magnetization vortex configuration; the first ferromagnetic layer being further configured to comprise an indentation such that a vortex core of the magnetization vortex, upon vortex nucleation or renucleation, is located substantially at the indentation in the absence of the external magnetic field; the magnetic element being such that: when the external magnetic field is applied in the first field direction (-H x) the vortex core moves along a first path and the first magnetization rotates around the vortex core in a counterclockwise direction in the plane of the first ferromagnetic layer; when the external magnetic field is applied in the second field direction (Hx) opposed to the first field direction, the vortex core moves along a second path and the first magnetization rotates around the vortex core in a clockwise direction in plane of the first ferromagnetic layer; and wherein both the first and second path (212, 213) are substantially identical constituting a path along which the vortex core moves away from the indentation; and characterized in that, in the plane of the first magnetization, the first ferromagnetic layer has an elliptical shape with an aspect ratio being between 1 and 2, an indentation depth of the indentation being about 0.1 the minor axis of the ellipse; the indentation comprising a convex peripheric portion along the periphery of the first ferromagnetic layer and the radius (Rd) of the peripheric portion being about 0.5 the depth. a magnetic tunnel junction element including a tunnel barrier layer sandwiched between a first ferromagnetic layer having a first magnetization and a second ferromagnetic layer having a second magnetization; a field device configured to generate an external magnetic field in a first field direction (-Hx) and alternatively in a second field direction (Hx), the external magnetic field being adapted for varying the orientation of the first magnetization while the orientation of the second magnetization remain unchanged; the first ferromagnetic layer being configured such that the first magnetization comprises a stable magnetization vortex configuration; the first ferromagnetic layer being further configured to comprise an indentation such that a vortex core of the magnetization vortex, upon vortex nucleation or renucleation, is located substantially at the indentation in the absence of the external magnetic field; the magnetic element being such that: when the external magnetic field is applied in the first field direction (-H x) the vortex core moves along a first path and the first magnetization rotates around the vortex core in a counterclockwise direction in the plane of the first ferromagnetic layer; when the external magnetic field is applied in the second field direction (Hx) opposed to the first field direction, the vortex core moves along a second path and the first magnetization rotates around the vortex core in a clockwise direction in plane of the first ferromagnetic layer; and wherein both the first and second path (212, 213) are substantially identical constituting a path along which the vortex core moves away from the indentation; and characterized in that, in the plane of the first magnetization, the first ferromagnetic layer has an elliptical shape with an aspect ratio being between 1 and 2, an indentation depth of the indentation being about 0.1 the minor axis of the ellipse; the indentation comprising a convex peripheric portion along the periphery of the first ferromagnetic layer and the radius (Rd) of the peripheric portion being about 0.5 the depth. when the external magnetic field is applied in the first field direction (-H x) the vortex core moves along a first path and the first magnetization rotates around the vortex core in a counterclockwise direction in the plane of the first ferromagnetic layer; when the external magnetic field is applied in the second field direction (Hx) opposed to the first field direction, the vortex core moves along a second path and the first magnetization rotates around the vortex core in a clockwise direction in plane of the first ferromagnetic layer; and wherein both the first and second path (212, 213) are substantially identical constituting a path along which the vortex core moves away from the indentation; and characterized in that, in the plane of the first magnetization, the first ferromagnetic layer has an elliptical shape with an aspect ratio being between 1 and 2, an indentation depth of the indentation being about 0.1 the minor axis of the ellipse; the indentation comprising a convex peripheric portion along the periphery of the first ferromagnetic layer and the radius (Rd) of the peripheric portion being about 0.5 the depth.