Abstract
This is the first of three papers dealing with the XX finite quantum chain with arbitrary, not necessarily Hermitian, boundary terms. This extends previous work where the periodic or diagonal boundary terms were considered. In order to find the spectrum and wavefunctions, an auxiliary quantum chain is examined which is quadratic in fermionic creation and annihilation operators and hence diagonalizable. The secular equation is, in general, complicated but several cases were found when it can be solved analytically. For these cases the ground-state energies are given. The appearance of boundary states is also discussed and in view of the applications considered in the next papers, the one- and two-point functions are expressed in terms of Pfaffians.