quadrature input

when using the the qd_read() function. Which inputs should the encoder be attached to?