Optimizing circuits using the Transpiler