gate_replacer
replace
Replaces all occurrences of a specific gate in the circuit IR with a given sequence of other gates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ir
|
IR
|
The circuit IR to modify. |
required |
gate
|
type[Gate]
|
Gate to replace. |
required |
replacement_gates_function
|
Callable[..., list[Gate]]
|
Function that returns a list of replacement gates. |
required |