Nonperturbative gadget for topological quantum codes.