QC works by the exploiting statistical properties of an algorithm to infer something about the subject through quantum computation. Writing quantum algorithms is hard because you can rarely write your algorithm in a way that directly deals with the property you want information on. Rather, you need to write an algorithm that yields your desired information as a biproduct of some other computation.