I got the recipe from mgwater.com
Haven't done this yet. Seek opinions.
and here is a page about bicarbonate
https://www.mgwater.com/bicarb.shtml
Recipe for Enriching Water with Magnesium Hydroxide:
FOUR EASY STEPS FOR MAKING THE MAGNESIUM/BICARBONATE DRINKING WATER CALLED "WW", USING MAGNESIUM HYDROXIDE IN "MILK OF MAGNESIA", AND CARBON DIOXIDE IN "CARBONATED WATER"
The chemical formula is Mg(OH)2 + (CO2)2 --> Mg(HCO3)2
Step 1: CHILL COMPLETELY TO REFRIGERATOR TEMPERATURE A 1 LITER BOTTLE OF "FULLY CARBONATED" WATER. Carbonated waters such as "Canada Dry Seltzer" which consist of only water and carbon dioxide (CO2) are suitable. "Club sodas" such as "Schweppes Club Soda" are also suitable; they are carbonated water with a small amount of added sodium.
Step 2: SHAKE WELL A BOTTLE OF PLAIN MILK OF MAGNESIA (MoM), THEN MEASURE OUT AS ACCURATELY AS POSSIBLE 3 TBS (45 ml) AND HAVE IT READY. The plastic measuring cup that comes with the MoM is accurate and ideal for the purpose. Use only plain MoM without flavorings, sweeteners, mineral oil, or other additives. The "active ingredient" should be only magnesium hydroxide (Mg(OH)2), 400 mg per teaspoon (5 ml), and the "inactive ingredient" should be only purified water. 41.7% by weight of magnesium hydroxide is magnesium (Mg), so 1 teaspoon of MoM has 167 mg of Mg, and 1 tablespoon (TBS) has 500 mg of Mg (1 TBS = 15 ml).
Step 3: REMOVE THE BOTTLE OF CARBONATED WATER FROM THE REFRIGERATOR WITHOUT AGITATING IT. REMOVE THE CAP SLOWLY AND CAREFULLY TO MINIMIZE THE LOSS OF CO2. SLOWLY ADD THE PREMEASURED MoM, THEN PROMPTLY REPLACE THE CAP. Next, shake the bottle vigorously for 15 to 30 seconds, making the liquid cloudy. After 1/2 hour or so the liquid will have cleared, and any un-dissolved Mg-hydroxide will have settled to the bottom of the bottle. Again shake the bottle vigorously for 15 to 30 seconds, making the liquid cloudy again. When the liquid again clears all of the Mg hydroxide in the MoM should have reacted with all of the CO2 to become dissolved (ionized) magnesium and bicarbonate. However, if a small amount of un-dissolved Mg hydroxide still remains in the bottom of the bottle as a sediment it may be ignored. This 1 liter of concentrated magnesium bicarbonate water will have 1,500 mg of magnesium and 7,500 mg of bicarbonate. This concentrate must be diluted in order to be "WW".
Step 4: DILUTE THIS CONCENTRATE 11:1 TO MAKE DRINKABLE MAGNESIUM/BICARBONATE WATER (WW). To make 4 liters of WW measure and transfer 1/3 liter of the concentrate (333 ml) into a 4 liter container. Fill the container with 3 2/3 liters of plain, preferably purified water. Or, prepare a single glassful of WW by adding 11 ounces of water to 1 ounce of the concentrate. This drinkable water will have approximately 125 mg of Mg and 625 mg of bicarbonate per liter, at pH ~8.3. Other dilutions of the concentrate may of course be made, if so desired.