Circuit.insert_circuit
- Circuit.insert_circuit(cycle_index, circuit, location, as_circuit_gate=False, move=False)[source]
Insert circuit at the cycle and location specified.
- Parameters:
cycle_index (
int
) – The cycle to insert the circuit.circuit (
Circuit
) – The circuit to insert.location (
CircuitLocationLike
) – Apply the circuit to these qudits.as_circuit_gate (
bool
) – If true, append circuit as a unit block (CircuitGate) rather than each operation in circuit individually. (Default: False)move (
bool
) – Move circuit into circuit gate rather than copy. (Default: False)
- Raises:
ValueError – If circuit is not the same size as location.
See also