# Function: rd53 # Used Library: MCT+P (gates: 15, quantum costs: 75) # This file has been taken from RevLib (www.revlib.org). .version 1.0 .numvars 7 .variables a b c d e f g .inputs x1 x2 x3 x4 x5 0 0 .outputs g g g g c0 c1 c2 .constants -----00 .garbage 1111--- .define pi a b c .cost 4 .description inverse Peres gate t a b t a b c .enddefine .begin t2 b f t2 c b pi b a f t2 a f t2 a d t2 a e t3 d e f t3 d e a t4 a b c g t3 b c f t3 a c g t3 d e a t2 d a t5 a b d e g t2 a e .end