If you take the side of the Scoia'tael in Chapter V, then during the quest Hope Burns Bright, you'll be sent to the Scoia'tael Hideout in Old Vizima. If you tell the elven commander there that you must speak with Toruviel, and if you tell Toruviel, "Your wish is my command," then you'll sleep with her.