Reverse engineering in Quil