Implements a completely functional (albeit inefficient) qc processor