Reduce circuit size

It is a complicated task to find optimal ways of designing a quantum circuit. Here I discuss some handy techniques to reduce the size of a circuit, including utilizing additional ancilla qubits and modifing order of gates.

See the description