  We consider the anisotropic $XY$ chain in a magnetic field with special
boundary conditions described by a two-parameter Hamiltonian. It is shown that
the exchange of the parameters corresponds to a similarity transformation,
which reduces in a special limit to the Ising duality transformation.
