Domain adaptation (DA) is used for adaptively obtaining labels of an unprocessed data set with a given related, but different labeled data set. Subspace alignment (SA), a representative DA algorithm, attempts to find a linear transformation to align the subspaces of the two different data sets. The classifier trained on the aligned labeled data set can be transferred to the unlabeled data set to predict the target labels. In this paper, two quantum versions of the SA are proposed to implement the DA procedure on quantum devices. One method, the quantum subspace alignment algorithm (QSA), can achieve quadratic speedup in the number and dimension of given samples. The other method, the variational quantum subspace alignment algorithm (VQSA), can be implemented on near-term quantum devices through a variational hybrid quantum-classical procedure. The results of the numerical experiments on different types of data sets demonstrate that the VQSA can achieve high accuracy in dealing with DA tasks.