I’m not sure how challenging this would be, but one really useful capability would be to have a function CVcircuit.cv_snapshot() that you can use to insert snapshot points in your circuit and output the Wigner function plot at each of those points. Sort of like inserting breakpoints when you are debugging.
Tim replies:
The plot_wigner() function in util.py could help here, though you'd need to save the statevector and retrieve it out of the result yourself. I could see making it easier using a cv_snapshot and index or something similar. https://github.com/C2QA/bosonic-qiskit/blob/main/c2qa/util.py#L482
Kevin asks:
Tim replies: