Code Monkey home page Code Monkey logo

Comments (2)

ShellyGarion avatar ShellyGarion commented on July 19, 2024

In ignis the tests were split into 3 parts:

  • tests for the circuit generation
  • tests for the fitters, based on pre-generated JSON data
  • functions to generate the JNON files (not running automatically, but we need to run them when the code is updated to update the JSON files)

However, in qiskit.experiments we can also have end-to-end tests, as in the T1 PR #5
This approach is useful for T1 and similar experiments, but can take long time when generating circuits for the advanced methods, such as RB and all its variants (interleaved, cnot-dihedral, purity etc.), QV etc, in particular if we want to check composite experiments.

So, which approach should we take here?

from qiskit-experiments.

chriseclectic avatar chriseclectic commented on July 19, 2024

At minimum we should have independent tests for circuit generation and analysis.

For RB circuit generation you can check that each circuit implements an identity by running Clifford(circuit), and check that the metadata reports the correct number of cliffords (this might be a bit trickier since might have to count barriers for this since we decompose when constructing the circuit), and that you have the right number of sequences. You could also check setting a seed produces deterministic output for repeat experiments.
For fitter we can use pre-generated or synthetic data to check fitting works.

Having an end to end test would be nice, but for RB we might have to wait until we can speed up the RB code since it will take too long.

from qiskit-experiments.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.