If you work on S parameter simulation, @frank.wiedmann mentioned a MicroSim App Note, and this circuit further simplify the simulation setup. I also performed a study on that app note and summarize into a study note upload to Github.
I made symbols for S-parameters simulation from above idea and in this Github link
https://github.com/KSKelvin-Github/Qspice/tree/main/Symbols-KSKelvin/.ac
Here is an example setup to use these symbols.
example.S-param.qsch (4.5 KB)