Using the solution of the time-dependent Schrodinger equation, the features of the excitation of a bound state of a particle in a one-dimensional rectangular quantum well of small depth by an extremely short light pulse are studied. The case of a shallow well with only one energy level is considered. In this case, the system is excited by an attosecond pulse whose duration is shorter than the characteristic time associated with the energy of the bound state of the particle in the well. It is shown that in this case the population of the bound state and the ionization probability are determined by the ratio of the electric area of the pulse to its atomic scale, which is inversely proportional to the well width. The calculation results showed that unipolar subcycle pulses with nonzero electric area can excite the system faster and more efficiently than bipolar pulses with zero area. The possibility of using unipolar gamma-ray pulses of zeptosecond duration for deuteron excitation is discussed, and numerical estimates of the required duration and electric area of the pulse are given. Keywords: extremely short pulses attosecond pulses, unipolar pulses, electric area of a pulse, atomic scale of electric area, one-dimensional quantum wells, nanostructures.