INNER CODE UNIT · C++

b

aromanro/QCSim · QCSim/CliffordTests.cpp:804

            b = (a + 1) % n;
        const unsigned gate = cnotOnly ? 2 : rng() % 3;
        if (gate == 0)
            sim.ApplyH(a);
        else if (gate == 1)
            sim.ApplyS(a);
        else if (n > 1)
            sim.ApplyCX(a, b);
    }
}

bool CliffordResetRegression()
{
    for (size_t n : {0, 1, 7, 65, 1025})
    {
        CliffordRegressionSimulator sim(n), zero(n);
        PrepareCliffordRegressionState(sim);
        if (n != 0)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…