Multiplexing methods for scaling up photonic logic