Quantum interference device for controlled two-qubit operations