The move sequence below visits every possible 2x2x2 state exactly once and is also returning to the starting state, thus forming a Hamiltonian Circuit (which some people call the Devil's Algorithm).