Set up a Pytorch environment with CUDA on Poetry on Windows

I would like to learn how to setup a Pytorch environment with CUDA on Poetry in Windows. Is there a guide or something that can help me understanding which is the most efficient way of doing it?