How can I cope with withdrawal symptoms from addiction while pursuing my PhD?
Let me say first that we battled my son's addictions to opiates and heroin for over 10 years, so while I have little technical knowledge of addiction and withdrawal, I have a lot of first hand experience.  He went through rehab 3 times before it took, so I've nursed him through horrible withdrawal 3 times.  I say this so that I won't sound so ignorant in the next paragraph.  I know that each drug has its own peculiarities.

On March 3rd this year, I celebrated 30 years since my last cigarette.  I quit smoking just a few months before my Ph.D. qualifying exams.  So I was in the throes of withdrawal during the crucial study time.  (My joke is that I started raising hamsters, so I could kill something once a day.)  My main way of coping was to walk.  Study for a while and then walk.  Then Study.  Then walk.  I also took up yo-yo, so I had something for my hands to do when I got fidgety.  Tommy Smothers had just resurrected the fad and I got quite good.

The good news is that the physical withdrawal is relatively short.  So each week you should notice that things are a bit better.  Now is the time to develop good habits.  I wouldn't push hard, but I'd push medium.  Force yourself to do just a bit more than is comfortable, so that you learn that it's possible to concentrate, at least a bit, even with withdrawal distractions.  

As someone said in the comments, seeking medical help might be useful.  Unless things have changed, the medicos first attempt is to give you Prozac or something similar to calm you down a bit.  This didn't work for my son, but everyone responds differently.  

Hang in there.  As John Belushi said, "When things get tough, the tough get things."  

Edit:  Another trick is to clear off the top of a 4-drawer filing cabinet and use that for your work surface.  When I just couldn't "sit down and study", then I stood up to study.