It depends on the cannabis. Some strains are more potent than others.
Generally, people smoke or vape around 0.5-1 grams of cannabis to get high. However, starting with a smaller amount is always best and increasing the dosage gradually if needed. Too much cannabis can result in an unpleasant experience.