Introduction

Because of limited fossil fuel resources and increasing energy demands, hydrogen will be a crucial element in future renewable energy1. Numerous studies have been undertaken to identify functional materials for sensing, storage, and catalyzed dissociation of hydrogen, yet these remain a challenge1,2. In addition to the conventional gas phase, hydrogen can be stored in the interstitial sites of a solid crystalline lattice after dissociation from bi-atomic molecules to single atoms2. Because the volumetric density of hydrogen can be greatly increased in solid state storage, various metal-hydride systems have been investigated for their hydrogen storage potential. Moreover, after hydrogen absorption, the crystalline structure, electronic properties, and magnetism of the materials usually change; therefore, materials sensitive to hydrogen absorption have been proposed for use in hydrogen-sensing devices. Most studies have focused on reversible optical and electrical property changes induced by hydrogenation3,4. Hydrogen-induced reduction of resistivity can feasibly be applied to hydrogen sensing, but it cannot provide spatial resolution of hydrogen content in the materials. Hydrogen-induced changes of optical properties, especially transmission, provide a noninvasive method of detecting hydrogen diffusion in materials. Huiberts et al.3 first reported the switchable optical properties of yttrium and lanthanum hydride films3. Upon hydrogen loading, yttrium hydride changes from a shiny mirror to a transparent window. Den Broeder et al.5 pioneered the visualization of hydrogen migration in solids using YHx switchable mirror thin films. They observed the electromigration of hydrogen, which diffused toward the anode when a current flowed through the film. This indicated that hydrogen in YH3−δ behaved as a negative ion. Kerssemakers et al.6 observed the homogeneous and essentially independent optical switching of individual domains in Pd/YHx/CaF2(111) epitaxial switchable mirrors during hydrogen absorption. Remhof et al.7 demonstrated that YHx switchable mirror material could be used both as an indicator for monitoring and an agent for controlling hydrogen diffusion in a VHx underlayer. Hjörvarsson and colleagues8 combined light and electron scattering to explore hydrogen diffusion in Pd/V/MgO(001) single crystalline thin metallic films.

Most studies have used reflectivity and transmission changes in YHx and VHx, respectively, to visualize hydrogen diffusion3,5,6,7,8. However, investigating the kinetics of hydrogen diffusion in other nontransparent metallic materials remains a challenge. Alongside the reported optical investigations, the reversible changes of magnetic properties in ferromagnetic thin films induced by hydrogen absorption and desorption should also be considered9,10,11,12,13. This method can be applied to various hydrogen-sensitive magnetic Pd-alloys, in which the detection of hydrogen-induced magnetism changes is feasible even though hydrogen-induced change in reflectivity is limited. Our other studies showed that in an annealed Pd/Co/Pd trilayer and a [Co/Pd]12 multilayer, hydrogenation-induced modulation of magnetism could be observed because of the Pd-alloyed interface effect13,14,15,16,17. This was because Pd is a highly efficient catalyst for hydrogen molecule dissociation and Pd-hydride formation is energy favorable2. Based on these findings, we also observed appreciable magnetic modulation in Pd-rich magnetic alloy thin films, indicating that such materials would be useful in fabricating gas sensors and especially suitable for spatially resolved hydrogen diffusion12,18,19,20,21,22,23. Moreover magneto-optical Kerr effect (MOKE), originating from the optical property and magnetism of materials, has long been widely applied in magnetic measurement of nano-scale samples because of the extremely high sensitivity and feasibility24,25,26. In addition to the magneto-optical Kerr rotation and intensity, the intrinsic characteristics of magnetism such as the magnetic cercivity Hc and the squareness Mr/Ms can be measured through this method14,16,18,23,27,28.

Here we demonstrate hydrogen diffusion monitoring in a Co25Pd75/SiO2/Si(100) magnetic film using a magneto-optical Kerr microscope in the longitudinal geometry. The spatial distribution of hydrogen content is recorded with variations in absorption and desorption time, respectively. The detailed kinetics of hydrogen diffusion are also discussed in this paper.

Results

Sample design and measurement of magneto-optical Kerr effect

Figure 1 illustrates a sample structure with the measurement geometry. The right side of a 50-nm-thick Co25Pd75 alloy stripe was fully covered by a 100-nm-thick ZnO film. ZnO is transparent so that we can easily perform the Kerr measurement through the thick ZnO cover layer. Besides, the ZnO/CoPd interface is stable at room temperature; capping the CoPd film by ZnO does not cause considerable change in magnetic property (Supplementary Fig. 1). The atomic structure of ZnO is quite compact so that the H2 molecules cannot penetrate through it. Thus the ZnO cover layer can prohibit the direct contact and absorption of hydrogen from the covered surface of the CoPd film. As illustrated in Fig. 1c, the right side of the CoPd film was fully covered by the 100-nm-thick ZnO cover layer and the left side was bare. In this sample design, we can be sure about that during the exposure to H2 gas, the hydrogen absorption only occurs on the bare CoPd surface, and therefore the H-content in the CoPd film diffuses from the bare part (left) to the ZnO-coverd part (right). Inversely, when the chamber is evacuated, the hydrogen desorption only occurs on the bare CoPd surface and therefore the H-content diffuses from the ZnO-coverd part (right) to the bare part (left). To monitor hydrogen diffusion, the Kerr microscope focused on the boundary area with a 500 × 500-μm2 field of vision. Sequential Kerr images were recorded using a suitable magnetic field. By integrating the intensities of selected areas in the Kerr images, we could obtain local magnetic hysteresis loops for each area. Spatially resolved magnetic behavior in the Co25Pd75 film could thus be real-time monitored during hydrogen exposure or desorption. Figure 2 illustrates an example of using longitudinal MOKE to achieve a spatially resolved hydrogenation effect. An optical microscope (OM) image is shown in Fig. 2a, with seven selected areas indicated by the green rectangles. The arrow indicates the direction of hydrogen diffusion, and the sample geometry is shown at the bottom. Hysteresis loops integrated from specific areas are shown in Fig. 2b, where the evolution of the hysteresis loop shape can clearly be seen. From left (No. 1) to right (No. 7), the hysteresis loop changes from a square-like shape to a tilted narrow shape. Our studies on Pd-rich magnetic alloy thin films have shown that the hydrogenation effect can reversibly change magnetic behavior from a low remanence (Mr) to saturation (Ms) ratio to Mr/Ms = 100%18,20,21. This is because the hydrogen content in a Pd-rich magnetic film induces a spin-polarized charge transfer between Co and Pd, thus mediating the long-range magnetic coupling, that is, the 100% Mr/Ms ratio18. Because of the hydrogen-induced enhancement of magnetic exchange interaction, the Curie temperature increases and the power law dependence of Mr with temperature is elevated toward the higher temperature. Thus the room temperature-measured Mr increases with the introduction of H. Accordingly, the Mr/Ms ratio in a magnetic hysteresis loop provides a strong indicator of hydrogen content in the Pd-rich magnetic alloy film. The results shown in Fig. 2b reveal that the hydrogen diffusion front should be positioned between No. 4 and No. 5. The OM image in Fig. 2a exhibits no observable contrast around the hydrogen diffusion front. Although the Kerr rotation signal is much weaker than the background in the OM image, the Kerr effect is highly sensitive to hydrogen content and can serve as an indicator.

Fig. 1
figure 1

Geometry of magneto-optical Kerr measurement and sample design. a, b show the photo and magnified geometry of the magneto-optical Kerr microscope with an in-plane magnetic field (i.e. the longitudinal geometry). c Illustration of the 50-nm-thick Co25Pd75 thin film stripe covered with 100-nm-thick ZnO. The left side of the Co25Pd75 stripe was bared for hydrogen absorption. The arrow indicates hydrogen diffusion from the bared Co25Pd75 to ZnO/Co25Pd75, as real-time monitored through magneto-optical Kerr effect

Fig. 2
figure 2

Observation of hydrogen absorption-induced changes in magnetic properties. a Optical microscopic image of ZnO/Co25Pd75 with the bare end on the left side. The arrow indicates the hydrogen diffusion direction. The scale bar indicates 20 μm. b Magneto-optical Kerr effect hysteresis loops measured at various areas indicated by the rectangles in a. The spatially dependent evolution of magnetic hysteresis behavior indicated the hydrogen content distribution in the Co25Pd75 film

The Co25Pd75 alloy film under a vacuum presented no observable domain structure; the gray scale in the Kerr images gradually and continuously became darker/brighter with the negative/positive increase in the magnetic field. The absence of the magnetic domain structure is because the magnetization reversal was dominated by small nucleations which are randomly distributed on the thin film, and their size was of a submicrometer scale below the resolution of the Kerr microscope27. In contrast to the absence of magnetic domain structure under a vacuum, the H-content induced visible magnetic reversal nucleations and also advanced the DW motion, leading to the expansion of reversal nucleations and subsequently the large magnetic domains27. Besides, the magneto-optical Kerr signal (rotation) could easily change with the film thickness and protective covering layer, because the absolute value of Kerr hysteresis loop is a complex of magnetic and optical properties. The Kerr intensity IKerr is usually approximated as being proportional to the magnetization M, i.e. IKerr M. The linear coefficient in IKerr M depends on the optical properties of the cover layer, magnetic thin film and the substrate. However through dividing Mr by Ms, this linear coefficient can be eliminated. The Mr/Ms ratio deduced from the Kerr hysteresis loop originates from only the intrinsic magnetism of the CoPd film. Mr/Ms is mostly determined by the exchange coupling and magnetic anisotropy, which are microscopic-scale properties. Thus in this study, we measure the spatial distribution of the Mr/Ms ratio for the indication of H-concentration. This indication by H-enhanced Mr/Ms is directly correlated to the intrinsic magnetism of CoPd film and will not be affected by the covering layer or underneath substrate. This is also the advantage of adopting the Mr/Ms ratio, especially for those non-transparent films with a covering layer.

Calibration of hydrogen concentration

In a pressure-composition-isotherms (PCI) study by Zlotea et al.29, under an H2 pressure of 105 Pa the hydrogen solubility of Co25Pd75 nanoalloys increased with decreasing particle sizes, yielding atomic hydrogen to metal ratios (H/M) of 5, 8, and 23% for average particle sizes of 12.5, 5.3, and 2.1 nm, respectively. In the case of pure Pd particles, nanosize effects are clear for particle sizes <10 nm. Therefore, it is reasonable to compare the hydrogen storage capacity of Co25Pd75 nanoalloys >10 nm to the 50-nm-thick Co25Pd75 film in our experiment. The left axis of Fig. 3 shows the PCI results of Zlotea et al.29 for a 12.5-nm Co25Pd75 nanoalloy. The red dots depict the monotonic increasing curve of hydrogen concentration with H2 gas pressure \(\left( {{\mathrm{P}}_{{\mathrm{H}}_2}} \right)\); the H/M ratio has reached nearly 5% with 105 Pa of \({\mathrm{P}}_{{\mathrm{H}}_2}\). On the right axis of Fig. 3, the Mr/Ms ratio of the Co25Pd75 film is plotted as a function of \({\mathrm{P}}_{{\mathrm{H}}_2}\) according to our study of the hydrogenation effect on CoPd alloys. The blue squares depict the increasing trend of the Mr/Ms ratio from 20 to 100% with the increase of \({\mathrm{P}}_{{\mathrm{H}}_2}\) from 10−1 Pa to 105 Pa. By fitting the curves from the \({{H}}/{{M}} - {\mathrm{P}}_{{\mathrm{H}}_2}\) and \({{M}}_{\mathrm{r}}/{{M}}_{\mathrm{s}} - {\mathrm{P}}_{{\mathrm{H}}_2}\) experimental data, a correlation between hydrogen concentration (H/M) and magnetic property (Mr/Ms) was deduced, as shown in the inset of Fig. 3. According to the correlation curve, the spatial distribution of hydrogen content could be obtained from the experimentally measured Mr/Ms values. Note that all the experimental data of \({{H}}/{{M}} - {\mathrm{P}}_{{\mathrm{H}}_2}\) and \({{M}}_r/{{M}}_s - {\mathrm{P}}_{{\mathrm{H}}_2}\) were measured at room temperature (RT) and the error bars in Fig. 3 are determined from the statistical deviation of the magnetic coercivity in the repeating MOKE measurements. Considering the Mr/Ms ratio and the equilibrium H/M are sensitive to the temperature, the deduced correlation between Mr/Ms and H/M is only suitable for RT-environment.

Fig. 3
figure 3

Correlation between the hydrogen concentration and the remanence to saturation ratio (Mr/Ms). Left axis: atomic hydrogen (H) to metal (M) ratio; right axis: Mr/Ms ratio of Co25Pd75 when exposed to various hydrogen gas pressures29. The error bars are determined by the signal to noise ratio in the Kerr hysteresis loops. The inset shows the H/M ratio plotted as a function of Mr/Ms for a Co25Pd75 alloy film. This function was used in calibration of the hydrogen concentration (H/M) by measuring magneto-optical Kerr effect hysteresis loops (Mr/Ms ratio). The error bars originates from the uncertainty in the Kerr measurement

Visualizing hydrogen diffusion

After subtracting the negative from the positive remanence state (i.e., the differential image of (Mr+Mr−)), the Kerr images shown in Fig. 4a clearly exhibit a time-dependent evolution of the hydrogenation effect and hydrogen content (Supplementary Fig. 2). For example, in the Kerr image for time = 600 s after H2 exposure, the bright area on the left indicates a 100% Mr/Ms ratio because of saturated hydrogenation, whereas the dark area on the right indicates a low Mr/Ms ratio (~20%) in the pristine Co25Pd75. In the Kerr images between 600 and 2400 s, the black/white boundary is observed to shift toward the right. After 2400 s, no obvious shift of the black/white boundary was evident; instead, the dark area gradually became gray and the contrast decreased over time. Figure 4b shows the Mr/Ms ratio recorded at various X positions relative to the edge of the ZnO capping layer. The Mr/Ms distribution was sequentially recorded at different times after hydrogen exposure. The Mr/Ms distribution curves provided information on the hydrogenation effect on Co25Pd75 film magnetism. The hydrogen concentration distribution could be obtained through the correlation curve shown in Fig. 3.

Fig. 4
figure 4

Visualizing hydrogen diffusion in a 50-nm-thick Co25Pd75 film by magneto-optical Kerr effect. a By subtracting the negative (Mr−) from the positive (Mr+) remanence state (i.e., the differential image of (Mr+Mr−)), Kerr images were sequentially taken at different times after hydrogen exposure. The scale bar indicates 100 μm. b The the remanence to saturation ratio Mr/Ms recorded at various X positions relative to the ZnO capping layer edge. The curves correspond to different times after hydrogen exposure

The hydrogen concentration (H/M) distribution curves deduced from the Mr/Ms ratio are displayed in Fig. 5a. The position of the H/M = 2, 3, and 4% hydrogen diffusion fronts is plotted as a function of time in Fig. 5c. Figure 5d shows the diffusion velocity of the H/M = 2, 3, and 4% fronts by differentiation from the positions in Fig. 5c. Combining the information from Figs. 4b and 5, hydrogen diffusion behavior can be classified into three regions. In the first region at 0–150 μm (0–2400 s), both the Kerr image (Fig. 4b) and the H/M distribution curves (Fig. 5a) exhibit a clear hydrogen diffusion front movement. The diffusion velocity deduced from differentiation of the H/M = 2, 3, and 4% front positions in Fig. 5c is ~120 ± 20 nm/s. The deviation of the diffusion speed originates from the errors or uncertainties in the determination of hydrogen concentration H/M. According to the Mr/Ms-H/M correlation curve shown in Fig. 3, the spatial distribution of hydrogen content can be obtained from the experimentally measured Mr/Ms values at each location. About the spatial-resolved distribution of H-content in the Co25Pd75 film studied in this experiment, we need to consider both the spatial resolution and the resolution of H-concentration measurement. The spatial resolution is determined by the precision of our Kerr microscope, including the optical setup and the CCD-imaging system. In our experiment, the measurement results always repeated within few μm. Concerning the resolution of the H-concentration, the precision is determined by the signal to noise ratio of Kerr effect. The precision of Mr/Ms ratio is within ±0.05, corresponding to the precision of H/M ratio within ±2.5%. However the accuracy of hydrogen concentration is significantly affected by the calibration of the H-content and the Mr/Ms ratio. This calibration also counts on the previous results of Zlotea et al.29: the H-content in CoPd alloy corresponding to the variable hydrogen pressure. Thus the accuracy in the calibration of H-content and the Mr/Ms ratio is supposed to dominate the resolution of the H-concentration. When combining the spatial-resolved H-distribution for the fitting of diffusion coefficient, as shown in Fig. 5, the accuracy of the calibration: H-content vs. the Mr/Ms ratio determines the uncertainty.

Fig. 5
figure 5

Analysis of hydrogen diffusion in a 50-nm-thick Co25Pd75 film. a Hydrogen concentration distribution profile at different times by a step of 300 s after exposure to 105 Pa H2 gas. b The experimental data points with the solid fitting curves. The inset shows the fitted diffusion coefficient D at different times with the error bars indicating the uncertainty in the fitting. c The position of the 2, 3, and 4% H/M fronts, plotted as a function of exposure time. d Velocity of the 2–4% H/M fronts derived from c The error bars show the statistical uncertainty in the calculation of velocity

In the second region at 150–350 μm (2400–4200 s), no clear shift of contrast in the Kerr image (Fig. 4b) or H/M distribution curves (Fig. 5a) is observed. The hydrogen concentration increased gradually. The diffusion velocity deduced from differentiation of the H/M = 2, 3, and 4% front positions in Fig. 5c is ~30 ± 15 nm/s. In this region, hydrogen diffusion is relatively low and follows Fick’s diffusion laws8. Considering the low concentration of H/M (≤5%) and the fact that measurement was performed at 300 K, hydrogen behaved as a noninteracting particle and accordingly followed Fick’s second diffusion law, which can be expressed as follows:

$$\frac{{\partial {\mathrm{C}}(x,t)}}{{\partial t}} = D\frac{{\partial ^2{\mathrm{C}}(x,t)}}{{\partial ^2x}}$$
(1)

where C(x, t) is the time (t)- and position (x)-dependent function of the hydrogen concentration H/M, and D is the diffusion coefficient, which can be determined by fitting the model to the data8. Actually we followed the simulation method as reported by Pálsson et al.8. Given the boundary and initial conditions for the sample geometry in this experiment, the solution of Eq. (1) is expressed as a series of complementary error functions (erfcs)8. The erfc series converges quickly, and only a few terms must be considered when fitting the data8. The H/M distribution curves in the second region were fitted by solving Eq. (1) with a single free parameter, namely the diffusion coefficient D8. By fitting the experimental data with the model, a diffusion coefficient D was obtained. Figure 5b shows examples of the fitting curves and the inset summarizes the fitted values of D at the various times. From the fitted D values, we obtained an average D = 3 ± 2 × 10−12 m2/s. In other studies of Y, V, and Y/V bilayer thin films, D varies at room temperature by four orders of magnitude between the extreme values of H in Y (typically 10−13 m2/s) and H in V (typically 10−9 m2/s)7. For Mg-dihydride thin films, Teichmann et al. reported an average effective hydrogen diffusion coefficient of ~3 × 10−12 m2/s at room temperature30. The D value of 3 ± 2 × 10−12 m2/s for hydrogen diffusion in Co25Pd75 alloy thin film is within the D range observed in other studies and close to the D values in YHx and MgHx systems. Based on this MOKE method, detection of D values can be performed in other magnetic transition-metal hydrides.

In the third region at 350–500 μm (4200–6500 s), the diffusion velocity deduced from differentiation of the H/M = 2, 3, and 4% front positions in Fig. 5c is ~50 ± 20 nm/s, which is much faster than in the second region. When examining the optical image, a defect site on the hydrogen diffusion passage was found to dominate enhancement of the hydrogen diffusion velocity. To confirm the mechanism, more detailed analysis of the difference between the hydrogen diffusion velocity in a uniform area and that across a defect site was performed. Figure 6a shows the contrasted Kerr image (Mr+Mr−) near a defect site for different hydrogen diffusion times. When the hydrogen front approached the defect site at ~1200 s, a protruding domain was produced across the defect. In Fig. 6b, c, the spatial distribution of the Mr/Ms ratio is illustrated sequentially for different times on line profiles A and B, which pass through a normal film area and a defect area, respectively, as indicated in Fig. 6a. In the left axis of Fig. 6d, the position of the 2% H/M front diffusing along line A (beside the defect) and line B (across the defect) is plotted as a function of time. In the right axis, the difference between the 2% H/M front position along lines A and B (ΔX) is plotted, indicating the relatively rapid hydrogen diffusion rate across the defect area at ~1200 s. After passing through the defect area, diffusion of the 2% hydrogen front along lines A and B gradually merged at ~4800 s. This remerging of the hydrogen diffusion front after passing through the defect area seems reasonable, because transverse hydrogen diffusion could gradually eliminate the hydrogen concentration gradient between lines A and B.

Fig. 6
figure 6

Hydrogen diffusion across a defect site. a By subtracting the negative from the positive remanence state (i.e., the differential image of (Mr+Mr−)), Kerr images were sequentially taken at different times when hydrogen diffused across a defect area. b, c Remanence to saturation ratio Mr/Ms recorded at various X positions along lines A and B, as indicated in a. The curves correspond to different times after the start of hydrogen absorption from the bared Co25Pd75. d Left axis: position of the 2% H/M (H/M: atomic hydrogen (H) to metal (M) ratio) front in normal area (line A) and across the defect (line B) plotted as a function of time; right axis: difference between the 2% H/M front position on lines A and B. The error bars are determined by the uncertainty in 2% H/M front positions

Along with hydrogen absorption and diffusion, hydrogen desorption from the Co25Pd75 alloy film was also real-time monitored, as shown in Fig. 7. After loading the hydrogen concentration to nearly 5% of H/M by exposure to 105 Pa hydrogen gas, the hydrogen gas was pumped out to create a vacuum of 5 × 10−1 Pa for investigation of hydrogen desorption. Because the bared area of Co25Pd75 was exposed to a vacuum, the hydrogen desorption rate became much higher than the adsorption rate at the bared surface, leading to net hydrogen desorption. A one-dimensional hydrogen concentration gradient thus formed, leading to unidirectional hydrogen diffusion from the ZnO-covered region to the bared Co25Pd75 region. As illustrated in Fig. 7a, at the start of hydrogen desorption (600 s) the bared Co25Pd75 area (left) became dark (i.e., low Mr/Ms ratio and hydrogen concentration), whereas the ZnO-covered area (right) remained bright (i.e., high Mr/Ms ratio and hydrogen concentration). With increasing desorption time, the dark/bright boundary moved rightward to the ZnO/Co25Pd75 area, which also gradually became darker. Figure 7b shows the time-dependent Mr/Ms curves plotted as a function of position X, and Fig. 7c the time-dependent position of the 2, 2.5, and 3% H/M fronts across the defect-free area. The quantitative results of hydrogen desorption (Fig. 7b, c) are similar to the hydrogen absorption behavior in Fig. 5a, b. During the first 1000 s, the diffusion rate reached approximately 50 ± 20 nm/s, followed by a relatively low speed of ~30 ± 15 nm/s. The similarity of hydrogen absorption and desorption behaviors indicates that the same diffusion mechanism—namely, Fick’s diffusion law—prevailed.

Fig. 7
figure 7

Analysis of hydrogen movement during desorption. a By subtracting the negative from the positive remanence state (i.e., the differential image of (Mr+Mr−)), Kerr images were sequentially taken at different times after hydrogen desorption started. The scale bar indicates 100 μm. b Remanence to saturation ratio Mr/Ms recorded at various X positions. The curves correspond to different times after the start of hydrogen desorption from the bared Co25Pd75. c Time-dependent position of 2, 2.5, and 3% H/M (H/M: atomic hydrogen (H) to metal (M) ratio) fronts across the defect-free area

The main idea of this report is that H-content promoted magnetic exchange interaction and caused the increase of Mr. This is because the H-content enhanced the magnetic exchange interaction. In our Kerr measurement, the sample of ZnO-covered Co25Pd75 alloy thin film was stored in a chamber at RT while the hydrogen pressure in the chamber was stably sustained at 1 bar. The experimental results demonstrated that the material of Co25Pd75 alloy and the method of spatial-resolved magneto-optical Kerr effect could be used for the hydrogen gas sensing and the indicator of H-content distribution in solids at the constant temperature of RT. However one should note that when the hydrogen content in a material reaches an equilibrium condition, an equal amount of hydrogen is entering and leaving the sample. This equilibrium counts on the equality between the absorption and desorption rate of hydrogen. If some external conditions change, such as the temperature or hydrogen pressure, the absorption rate and desorption rate may considerably be changed and thus a new equilibrium state with different hydrogen concentration will be achieved. Therefore our method cannot be directly applied at variable temperature or under a \({\mathrm{P}}_{{\mathrm{H}}_2}\) other than 1 bar, unless the H-induced change in Mr is calibrated in the various conditions.

Discussion

In this study, hydrogen diffusion in an Co25Pd75 alloy film was real-time monitored using a magneto-optical Kerr microscope. Through hydrogenation-induced enhancement of magnetic remanence, the H/M atomic ratio could be calibrated using spatially resolved magneto-optical contrasted images. This method provided a noninvasive method of monitoring hydrogen movement in magnetic thin film. In our analysis, hydrogen absorption and diffusion followed Fick’s diffusion law, and a diffusion coefficient of 3 ± 2 × 10−12 m2/s was obtained by fitting the experimental data to the model. The diffusion velocity of the 2, 3, and 4% hydrogen concentration fronts reached 30 ± 15 nm/s in the uniform film area and increased to 50 ± 20 nm/s near a defect site. Hydrogen desorption exhibited a hydrogen diffusion speed similar to that of hydrogen absorption. These results demonstrated that hydrogen diffusion in nontransparent Pd-rich magnetic alloy thin films could be monitored, with possible applications in hydrogen-sensing and -storage technology.

Along with monitoring hydrogen diffusion behavior in magnetic metal thin films, we also demonstrated that the hydrogen-induced magnetic boundary was within 100 μm, which is even smaller than the general size of in-plane magnetic domains. This indicated that the hydrogen concentration gradient in magnetic CoPd film could induce a critical difference in interatomic magnetic coupling and lead to a discontinuity in magnetic domain structure. Even in a continuous Co25Pd75 alloy film, the expected large-scale long-range magnetic coupling did not mantle the hydrogen-induced contrast in Kerr images. The drastic hydrogen-induced change in local magnetic behavior, namely the enhanced Mr/Ms ratio, was sufficiently strong to overcome the pristine magnetic coupling. These observations suggest the future applicability of magnetic patterning using hydrogen implantation or diffusion.

Methods

Sample preparation

The ZnO/Co25Pd75 sample structure was fabricated on a SiO2/Si(001) substrate, as shown in Fig. 1. A 50-nm-thick Co25Pd75 alloy thin film, masked in the form of a 1 × 3-mm2 stripe, was codeposited by e-beam-heated evaporators in an ultra-high vacuum chamber with a base pressure of 3 × 10−7 Pa. The film thickness and alloy composition were calibrated through Auger electron spectroscopy, transmission electron microscopy coupled with energy dispersive spectroscopy, and atomic force microscopy18,20. A 100-nm-thick ZnO film was subsequently deposited on part of the Co25Pd75 film, leaving one end of Co25Pd75 stripe bared. The ZnO film was prepared at room temperature in an oxygen ambient pressure of 8.0 Pa through pulsed-laser deposition31. A Nd:YAG Q-switch laser provided a laser wavelength of 266 nm with an energy density of approximately 2.7 J/cm231,32.

Magnetic measurement

The magnetic hysteresis loops of the Co25Pd75 film were measured at room temperature using a magneto-optical Kerr microscope (Evico Magnetics GmbH) in the longitudinal geometry, focused on the boundary area between ZnO/Co25Pd75 and bared Co25Pd75. Magneto-optical Kerr effect (MOKE) measurements were conducted in a small vacuum chamber equipped with a window27. During measurement, the MOKE chamber was either pumped to a vacuum of 5 × 10−1 Pa or filled with H2 gas at various pressures to investigate the hydrogen effect on the magnetic properties of the Co25Pd75 alloy films.