Circuit.extend

Circuit.extend(ops)[source]

Append all operations in ops to the circuit.

Parameters:

ops (Operation) – The operations to append.

Examples

>>> from bqskit.ir.gates import HGate, XGate
>>> circ = Circuit(1)
>>> opH = Operation(HGate(), [0])
>>> opX = Operation(XGate(), [0])
>>> circ.extend([opH, opX])
>>> circ.point(opH)
(0, 0)
>>> circ.point(opX)
(1, 0)

Notes

See append for more info.