Qter Docs

Parity and Orientation Sum

Now, we need to show some properties of how the Rubik’s Cube group works. First, we would ideally like a way to take pieces into account in our representation of the Rubik’s Cube group. After all, we showed in the introduction how important they are to the mechanics of the cube. What we could do is instead of having a permutation group over all of the stickers, we could have a permutation group over all of the pieces. There are edges + corners = pieces on a Rubik’s Cube, so we need a subgroup of the permutations on 20 elements. That’s fine and dandy, but actually not sufficient to encode the full cube state. The reason is that pieces can rotate in place:

You can see that happening here, where the UFR corner is twisted in place in the first example and the FR edge is flipped in place in the second example. This shows that just encoding the positions of the pieces under-specifies the entire cube state, so we need to take orientation into account.

In general, any edge or corner can exist in any other edge or corner position in any orientation. So how can we encode this orientation in full generality? It’s easy to tell that the UFR corner and FR edge are twisted and flipped respectively in the above examples because the pieces can be solved by simply rotating them in place. However, when the pieces are not in their solved positions, there is no way to solve them just by rotating them in place. We need some kind of reference frame to decide how to label a piece’s orientation regardless of where it is on the cube. How can we define this reference frame?

Since the problem is that pieces can be unsolved, what we can do is imagine a special recoloring of the cube such that all pieces are indistinguishable but still show orientation. If the pieces aren’t distinguishable, then they’re always in their “solved positions” since you can’t tell them apart. Then it’s easy to define orientation in full generality. Here is a recoloring that does that:

You can imagine that we are taking a Rubik’s cube and replacing all of the stickers with new stickers of the respective colors. The reason that we can do this is that we already know how to represent the locations of pieces using a permutation group, so it is valid to throw out the knowledge of a piece’s location while figuring out how to represent orientation. To determine the orientation of a piece on a normally colored Rubik’s Cube, you can take the algorithm to get to that cube state and apply it to our specially recolored cube:

Even though the UFR corner isn’t in its solved position, we can still say that the piece in the UFR position is twisted because the blue sticker isn’t facing up, like it is in the recolored solved state. You would be able to “solve” that piece—make it look like the respective position in the recolored solved state—by simply rotating it in place. This gives us a reference frame to define orientation for a piece regardless of where it is located on the cube.

Note that this recoloring is entirely arbitrary and it’s possible to consider any recoloring of the solved state such that all pieces are indistinguishable but still exhibit orientation, as long as you are consistent with your choice. However, this recoloring is standard due to its nice symmetries as well as properties we will describe in the next paragraph.

Based on this recoloring, you can see that the move set preserves orientation of all of the pieces, and on top of that, and preserve orientation of the edges but not of the corners. The moves and flip four edges, while , , , and twist four corners.

Note that corners actually have two ways of being misoriented. If the corner is twisted clockwise, we say that its orientation is one, and if it’s counter-clockwise, we say that its orientation is two. Otherwise, it is zero.

We know that and flip four edges, but what do , , , and do to corners? Well whatever it is, those four do the same thing because all four of those moves are symmetric to each other with respect to corners in our recoloring. Therefore, we can track what happens to the corners for just one of them.

This should make logical sense. We already know that if you apply twice, the corners don’t get twisted, and that can be seen in the figure as well. If you perform twice, each corner will get a twist and a twist, which sums to three, except that three wraps around to zero.

From here, we can prove that for any cube position, if you sum the orientations of all of the corners, you get zero. Any quarter turn about , , , and adds a total of twists to the corners, which wraps around to zero. Therefore, moves cannot change the total orientation sum so it always remains zero. This shows why a single corner twist is unsolvable on the Rubik’s Cube:

The orientation sum for the corners in this position is one (one for the twisted corner plus zero for the rest), however it’s impossible to apply just one twist using moves, and the corner orientation sum will always be one regardless of the moves that you do.

Similarly, we can show that the orientation sum of edges is also always zero. If we call the non-flipped state “zero” and the flipped state “one”, then the and turns both flip four edges, adding to the edge orientation sum of the cube, which wraps around to zero. Therefore, a single edge flip is unsolvable too:

Is there anything else that’s unsolvable? Actually, yes! For this to make sense, we have to think of permutations as a composition of various swaps. For example, a four-cycle can be composed out of three swaps:

In general, any permutation can be expressed as a composition of swaps. So what does this have to do with Rubik’s Cubes? Well a funny thing with swaps is that permutations can only either be expressed as a combination of an even or an odd number of swaps. This is called the parity of a permutation. You can see that a four-cycle has odd parity because creating it requires an odd number of swaps. Any quarter turn of a Rubik’s Cube can be expressed as a four cycle of corners and a four cycle of edges, which is swaps. Overall, the permutation is even.

Therefore, a two-swap of Rubik’s Cube pieces is unsolvable because creating it requires a single swap, and doing turns only does even permutations, meaning the permutation of pieces will always remain odd.

Is there any other arrangement of pieces that is unsolvable? Actually no! You can show this by counting the number of ways that you can take apart and randomly put together a Rubik’s Cube, then dividing that by three because two thirds of those positions will be unsolvable due to the corner orientation sum being non-zero. Then divide by two for edge orientation sum, and then divide by two again for parity. You will see that the number you get is which is exactly the size of the Rubik’s Cube group.