No, the number of moles in H2 is not the same as in 2H.
H2 represents a molecule of hydrogen gas, where two hydrogen atoms are chemically bonded together. The subscript 2 indicates that there are two atoms of hydrogen in the molecule. When referring to moles, 1 mole of H2 would contain Avogadro's number (6.022 x 10^23) of H2 molecules, which means it would contain twice that number of individual hydrogen atoms (2 moles of H atoms).
On the other hand, 2H represents two separate atoms of hydrogen. When referring to moles, 1 mole of 2H would contain Avogadro's number of 2H atoms, which is equivalent to 1 mole of 2H atoms.
In summary, 1 mole of H2 contains 2 moles of individual H atoms, while 1 mole of 2H contains 1 mole of 2H atoms.