Quantum Circuit Transformation