Comments (12)
I have coded a quantum classifier using QIBO. I can provide the code if you want to
from qibo.
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.
Yes, let me summarize the procedure:
- clone the latest master
- create your custom branch with
git checkout -b mybranch
(where you replace a mybranch with a different name) - create a top level folder called
examples
- place your script there
- when you are ready create a pull request (via github or after pushing) for review
from qibo.
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.
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.
@AdrianPerezSalinas please open a pull request with your branch pointing to master, with https://github.com/Quantum-TII/qibo/compare.
from qibo.
@DiegoGM91 from the list above I see that there is a text/image classifier example missing, are you working on it?
from qibo.
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.
from qibo.
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.
@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.
@DiegoGM91 are you planning to open a PR with the classification example?
from qibo.
Related Issues (20)
- Add Matteo to documentation
- Reuploading classifier expects states method from circuit result object HOT 4
- `AbstractResult` object
- Does Qibo provides measurements? HOT 2
- Restore QGAN model
- CVXPY not available in Python 3.12
- ResetChannel does not do in-place modification of density matrices with qibojit
- Change transpiler `final_layout`
- qibo.transpilation does not seem to allow user to define some native gates HOT 1
- ZNE doesn't repeat RX or CNOT gates when there is no RX or CNOT in the circuit HOT 1
- Transpiler handling across backends HOT 1
- Inconsistent pytest results on macos with pytorch HOT 1
- Suggested improvement for ZNE's `get_noisy_circuit` function (related to #1305) HOT 1
- Unroller duplicates gates when measuring in specific basis HOT 2
- Request for adding VTE (Variational Time Evolution) or PF (Product Formulas) in QiboTN HOT 4
- Conversion of circuits with Unitary gates to QASM not supported
- DBI utils module
- Align gate should be a `ParametrizedGate`
- Supporting new `QASM` directives
- Test failing on GPU for both `cupy` and `cuquantum`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qibo.