Added generalizations to quantum compiling.