@jtrites2023
This is not a complete S-parameters extraction, as my work normally only requires to get S11 (sometime S21), and this is the method I use. I have a more detail explanation upload to Github for your reference.
Here is an example to measure a pi-network and compare its result with SimNEC (SimSmith). This method normally good enough for me to yield a result to compare with measurement from network analyzer.
Limitation of Qspice is that its waveform viewer not support Cartesian representation, and you have to export data and post-process it with other software to get SmithChart representation for S11.