Exemple #1
0
        public void GetPrimitiveOperations()
        {
            QCTraceSimulator tracerCore = new QCTraceSimulator();

            var measureOp = tracerCore.Get <Intrinsic.Measure, Intrinsic.Measure>();

            Assert.NotNull(measureOp);

            var assertOp = tracerCore.Get <Intrinsic.Assert, Intrinsic.Assert>();

            Assert.NotNull(assertOp);

            var assertProb = tracerCore.Get <Intrinsic.AssertProb, Intrinsic.AssertProb>();

            Assert.NotNull(assertProb);

            var allocOp = tracerCore.Get <Intrinsic.Allocate, Intrinsic.Allocate>();

            Assert.NotNull(allocOp);

            var releaseOp = tracerCore.Get <Intrinsic.Release, Intrinsic.Release>();

            Assert.NotNull(releaseOp);

            var borrowOp = tracerCore.Get <Intrinsic.Borrow, Intrinsic.Borrow>();

            Assert.NotNull(borrowOp);

            var returnOp = tracerCore.Get <Intrinsic.Return, Intrinsic.Return>();

            Assert.NotNull(returnOp);
        }
Exemple #2
0
        public void GetInterfaceOperations()
        {
            QCTraceSimulator tracerCore = new QCTraceSimulator();

            var CX = tracerCore.Get <Interface_CX, Interface_CX>();

            Assert.NotNull(CX);

            var clifford = tracerCore.Get <Interface_Clifford, Interface_Clifford>();

            Assert.NotNull(clifford);

            var r = tracerCore.Get <Interface_R, Interface_R>();

            Assert.NotNull(r);

            var rFrac = tracerCore.Get <Interface_RFrac, Interface_RFrac>();

            Assert.NotNull(rFrac);

            var forceMeasure = tracerCore.Get <ForceMeasure, ForceMeasure>();

            Assert.NotNull(forceMeasure);
        }