Circuit.replace_gate

Circuit.replace_gate(point, gate, location, params=[])[source]

Replace the operation at ‘point’ with gate.