How much water? A simple evaporation chamber can naturally distill water in small quantities, a black (or heated) water barrel with a glass cover and drip pan would work. For large quantities, Deionization and carbon filters are probably going to be best.
If a selective removal of inorganic anions (such as bicarbonate and carbonate) from the water and preservation of the content of cations (Ca, Mg, etc,) is aimed, Donnan dialysis using anion-exchange membranes can be a relevant separation method.
As told from Antonio first question is: How much water? Second question is: Wich is the concentration of Mg, Ca and carbonates, on the base of these answers an economical method could be set up. Freezing could be an interesting option to remove the most of the hardness if the water quantity is low
The hardness caused due to bicarbonates of calcium and magnesium is called temporary hardness.
calcium carbonate is sparingly soluble in water (0.0013 g/100 mL (25°C)). Temporary hardness i.e., Bicarbonates of calcium and magnesium can be removed by mere boiling