Valence-bond states for quantum computation