A technique relates to a magnetic device and a diamagnetic material positioned to levitate at a three-dimensional minimum of a potential well generated by a magnetic field of the magnetic device.