CircuitFactory public protocol CircuitFactory Factory to build Circuit instances makeCircuit(gates:) Builds Circuit instances. Declaration Swift func makeCircuit(gates: [Gate]) -> Circuit Parameters gates Sequence of gates in the circuit to be built. Return Value A Circuit instance.