qrisp.Instruction.merge#

Instruction.merge(other)[source]#

Merges two instructions into one.

Parameters:
otherInstruction

The second instruction.

Returns:
resInstruction

The merged instruction (self is executed first).