A magnetic topological nanowire structure comprises a superconductor and a quasi-1D magnetic nanowire. The quasi-1D magnetic nanowire is coupled to or embedded in the superconductor to produce a self-contained interaction resulting in a spatially separated pair of Majorana fermions. The pair of Majorana fermions corresponds to the topological superconductor and each of the pair of the Majorana fermions are localized near a respective endpoint of the nanowire.