  Although it is well known that all quantum states can be produced by single
qubit measurements on the cluster states, it is not a simple task to explicitly
find which measurement patterns on the cluster states can generate different
quantum states. In this paper we introduce a general scheme to find measurement
patterns corresponding to different topological CSS states containing Kitaev's
toric code states and color code states on different lattices and in different
dimensions. Furthermore, we find a measurement pattern for generating non
abelian anyons where measurement induced defects on a toric code state play the
role of Ising anyons. We also support our scheme by a graphical notation where,
by following a few simple graphical transformations, one will be able to
convert a CSS topological state to a cluster state. Our scheme can be also used
for experimental realization of anyons on cluster states.
