Transforming quantum circuits into negator circuits