As part of the header decoding circuit for a 100 Gb / s ring local area network, we demonstrate a soliton-dragging NOR-gate followed by a soliton-trapping AND-gate that can operate up to bit rates of 0.2 THz. The soliton-dragging NOR-gate has a time-shift-keyed output, while the soliton-trapping AND-gate converts the time shifts to an energy contrast. Even with timing jitter and coupling losses, the measured output energy contrast is approximately 12:1. The experimental results are in good agreement with numerical simulations of the nonlinear Schrodinger equation.