public GenericPartial(GenericCallable baseOp, object partialValues) : base(baseOp.__Factory__, null) { Debug.Assert(baseOp != null, "Received a null base operation"); Debug.Assert(partialValues != null, "Received a null partial value"); this.Values = partialValues; this.BaseOp = baseOp; this.__qubits = new Lazy <Qubit[]>(() => this.ExtractQubits()?.ToArray()); }
public GenericAdjoint(GenericCallable baseOp) : base(baseOp.Factory, null) { this.BaseOp = baseOp; }
public GenericControlled(GenericCallable baseOp) : base(baseOp.Factory, null) { this.BaseOp = baseOp; }