Coder Social home page Coder Social logo

Comments (6)

ishworii avatar ishworii commented on September 15, 2024

Can I work on this?

from qiskit-experiments.

yaelbh avatar yaelbh commented on September 15, 2024

I fixed it in #62, but would like to get @chriseclectic's approval that it's correct

from qiskit-experiments.

merav-aharoni avatar merav-aharoni commented on September 15, 2024

I think the assertion itself is correct. We should set the experiment_type in runwhen experiment_data is None, as follows:

            # Create new experiment data
            experiment_data = self.__experiment_data__(experiment=self, backend=backend)
            experiment_data.metadata()["experiment_data"] = self._type

I did this when I failed in #PR91 and it works fine.
In addition, I think there is no reason to set the experiment_type in every circuit.

from qiskit-experiments.

chriseclectic avatar chriseclectic commented on September 15, 2024

The data container already has the type as a property so this check should be experiment_data.experiment_type == self._type

from qiskit-experiments.

merav-aharoni avatar merav-aharoni commented on September 15, 2024

Is someone making this fix? because my tests are failing on this bug. If no one is doing it, I can open a separate PR on this and get it done.

from qiskit-experiments.

yaelbh avatar yaelbh commented on September 15, 2024

You can do it. I did it in #62 to solve the problem there, but I don't know when it will be ready, and separating PRs is always good.

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.