Implementation of a generalized controlled-NOT gate between fixed-frequency transmons