1: \begin{abstract}
2: We study the bond-alternating Heisenberg model using the finite-size density-matrix
3: renormalization group (DMRG) technique and analytical arguments based on the matrix
4: product state, where we pay particular attention to the boundary-condition dependence
5: on the entanglement spectrum of the system.
6: We show that, in the antiperiodic boundary condition (APBC), the parity quantum numbers
7: are equivalent to the topological invariants characterizing the topological phases
8: protected by the bond-centered inversion and $\pi$ rotation about $z$ axis.
9: We also show that the odd parity in the APBC, which characterizes topologically nontrivial
10: phases, can be extracted as a two-fold degeneracy in the entanglement spectrum even with
11: finite system size.
12: We then determine the phase diagram of the model with the uniaxial single-ion anisotropy
13: using the level spectroscopy method in the DMRG technique.
14: These results not only suggest the detectability of the symmetry protected topological (SPT)
15: phases via general twisted boundary conditions but also provide a useful and precise numerical
16: tool for discussing the SPT phases in the exact diagonalization and DMRG techniques.
17: \end{abstract}
18: