Ejemplo n.º 1
0
        public void ArrayTypes()
        {
            Assert.Equal("[1, 2, 3]", new[] { 1, 2, 3 }.GetNonQubitArgumentsAsString());
            Assert.Equal("[\"foo\", \"bar\"]", new[] { "foo", "bar" }.GetNonQubitArgumentsAsString());

            var opArr = new ICallable[] {
                new QrackSimulator().Get <Intrinsic.H>(),
                new QrackSimulator().Get <Intrinsic.CNOT>(),
                new QrackSimulator().Get <Intrinsic.Ry>(),
            };

            Assert.Equal("[H, CNOT, Ry]", opArr.GetNonQubitArgumentsAsString());

            var qTupleArr = new[] {