Friction-free quantum machines