Giter Club home page Giter Club logo

Comments (12)

DiegoGM91 avatar DiegoGM91 commented on June 3, 2024

I have coded a quantum classifier using QIBO. I can provide the code if you want to

from qibo.

AdrianPerezSalinas avatar AdrianPerezSalinas commented on June 3, 2024

I propose to create a new folder (possibly a new branch) where we can code everything and merge it when everything is ready. Everyone should update only his/her part. What do you think about that?

from qibo.

scarrazza avatar scarrazza commented on June 3, 2024

Yes, let me summarize the procedure:

  1. clone the latest master
  2. create your custom branch with git checkout -b mybranch (where you replace a mybranch with a different name)
  3. create a top level folder called examples
  4. place your script there
  5. when you are ready create a pull request (via github or after pushing) for review

from qibo.

stavros11 avatar stavros11 commented on June 3, 2024

If anyone has never used git before and is confused with this procedure let me know and I might be able to help. I am not a git expert but can demonstrate the couple of commands required for this.

from qibo.

AdrianPerezSalinas avatar AdrianPerezSalinas commented on June 3, 2024

Hi, I have already finished the core of my pieces of examples. Could someone please take a look at it and tell me if there is something to adapt with regard to how to present the codes? Thanks!

My branch is examples_adrian

from qibo.

scarrazza avatar scarrazza commented on June 3, 2024

@AdrianPerezSalinas please open a pull request with your branch pointing to master, with https://github.com/Quantum-TII/qibo/compare.

from qibo.

scarrazza avatar scarrazza commented on June 3, 2024

@DiegoGM91 from the list above I see that there is a text/image classifier example missing, are you working on it?

from qibo.

DiegoGM91 avatar DiegoGM91 commented on June 3, 2024

Hi @scarrazza. Yes, it is already coded and working. The problem is that the accuracy that I get for the classification task with the iris toy data set is not very high. So I would say those results are not good enough to be publicly shown. I've used the same code to correctly classify texts belonging to two separate classes, but I believe the texts come from a data set that is confidential. And so these results would no be reproducible by a qibo user looking at the example.

Thus, I want to try with a different data set. Hopefully, the quantum circuit will deliver good results this time. If that's the case, I'll make the pull request.

from qibo.

joseignaciolatorre avatar joseignaciolatorre commented on June 3, 2024

from qibo.

DiegoGM91 avatar DiegoGM91 commented on June 3, 2024

Hi,

This makes a lot of sense. I have re-scaled the data, which resulted in slightly better results. However, I think an additional problem was that the circuit was not deep enough. I'm trying with way deeper circuits (no less than 10 layers), and now I'm getting a more decent classification accuracy (around 83%).

I will therefore prepare a readme.md file and make the pull request if you think this is acceptable (I think it is).

However, maybe it makes more sense to choose an easier classification example (like dots inside and outside a circle), because for the iris data set the minimization takes now several hours, which might not be what we are looking for in these circuit examples. So I don't know, what do you think?

from qibo.

scarrazza avatar scarrazza commented on June 3, 2024

@DiegoGM91, the irisi is a good example because it is standard, but in principle you can create a single example which takes as input an argument which selects the dataset. I would suggest to create a PR with the training template and then plug both datasets as command line options.

from qibo.

scarrazza avatar scarrazza commented on June 3, 2024

@DiegoGM91 are you planning to open a PR with the classification example?

from qibo.

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.