This is the circuit to create an XOR gate using PNP transistors. An XOR gate will output 1 only when its inputs are different from each other. This XOR gate was created using NOR and AND gates. You can use this XOR gate to create an XNOR gate by reversing its output with a NOT gate.