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
pub fn clone_gate(gate: &dyn GateOp) -> QuantRS2Result<Box<dyn GateOp>>
Clone a gate by creating a new instance of the same concrete type