Function clone_gate

Source
pub fn clone_gate(gate: &dyn GateOp) -> QuantRS2Result<Box<dyn GateOp>>
Expand description

Clone a gate by creating a new instance of the same concrete type