Circuit.replace\_gate ===================== .. currentmodule:: bqskit.ir .. automethod:: Circuit.replace_gate