This would depend on the type of IVF one is having. If it is with your own eggs then at least 3 months, but preferrably more. It has been proven that nicotine and the numerous other poisons in...
Check with your doctor first (it's confidential and very important that you tell your doctor you smoke) but marijuana shouldn't interfere with anesthesia, if you're really worried maybe have a 3 day...
if you want to do this on your own without spending money then just start off very slowly for example start smoking one less cigarette every week. after you adjust to smoking that amount the trying...
theres no way to test for cigarettes just make sure you don't smell at the time of the "test"... you have to stop smoking weed for at least 2 weeks before the test otherwise that will show...