Quantum impurity models have deep connection with the boundary problem.Low-dimensional materials have been an additional source of motivation to investigate onedimensional exactly solvable models.We will study the common Hubbard model,and then study the Hubbard model with open boundary conditions.