Unfortunately the laws of thermodynamics will get in the way. Cannabis farming uses electricity to build organic chemicals and outputs waste heat at 40°C; bitcoin mining uses electricity to solve equations and outputs waste heat at 40°C. There's not really any way to use the waste products of one as an input to the other.