Fiber‐optic logic gate