I am being treated for a provoked pulmonary embolism and just wondered if it was safe for me to smoke cannabis while on rivaroxaban?

No. If you have a choice, don't. While smoking is not recommended, tobacco or cannabis, for anyone..... In someone who had a blood clot lodge in his lung, it is a very poor choice. Taking rivaroxaban does not mean that it is now safe to smoke.