I'm not sure that I understand what you mean by "equal". Hash is much more concentrated than weed, and appears much smaller than an equal amount, by weight, of weed. I don't think that the law differentiates, and the penalties are probably the same for both hash and weed.