Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
 public GenericAdjoint(GenericCallable baseOp) : base(baseOp.Factory, null)
 {
     this.BaseOp = baseOp;
 }
Ejemplo n.º 3
0
 public GenericControlled(GenericCallable baseOp) : base(baseOp.Factory, null)
 {
     this.BaseOp = baseOp;
 }