C2QA / bosonic-qiskit

Extension of Qiskit to support hybrid boson-qubit simulations for the NQI C2QA effort.
BSD 2-Clause "Simplified" License
51 stars 14 forks source link

Add support to group multiple gates together as one step in animated Wigner function #62

Closed tjstavenger-pnnl closed 2 years ago

tjstavenger-pnnl commented 2 years ago

From Kevin:

I am trying to animate the Wigner function as it evolves under the Jaynes-Cummings Hamiltonian. This evolution is not a native gate, though, and has to be realized with the composite sequence:

circuit.cv_r(...)
circuit.rz(...)
circuit.cv_c_r(...)

If I understand the animate_wigner function correctly, it will break each gate into individual segments, take snapshots, and stitch them together. But these gates all commute and what I am really doing is synthesizing a composite gate, and it is that composite gate that I want to animate. The animation won’t treat it like that, and instead will animate each sequentially. Any ideas about how to get around this? It’s not a big deal if not, I can just remove this part from the tutorial.

tjstavenger-pnnl commented 2 years ago

closed by PR #63