2
$\begingroup$

Where does The Tensorflow Quantum ( TFQ ) library fall on it's maturity curve.

In other words can we currently leverage the TFQ library to solve real-world problems? Will we need to wait for a TFQ 2.0?

Does this library, and if not will it ever, have more than just theoretical usefulness?

Will companies be utilizing TFQ to build systems that can help companies in the wild solve a problem faster/better than if they had utilized classical systems?


Tensorflow Quantum White Paper - For Reference

$\endgroup$
  • $\begingroup$ This question is more about QML than TFQ. If we replace "TFQ" with "QML" then your question makes sense. "Can we currently leverage the QML to solve real-world problems?" "Does QML, and if not will it ever, have more than just theoretical usefulness?" "Will companies be utilizing QML to build systems that can help companies in the wild solve a problem faster/better than if they had utilized classical systems?". We don't know the answers to these questions at the moment. TFQ is a tool we can use to search for quantum advantages in Machine Learning. $\endgroup$ – Victory Omole Apr 14 at 15:38
  • $\begingroup$ This is definitely a valid point. That being said, while I agree for the most part that QML is synonymous with TFQ, TFQ does not fully represent the possibilities for use of Quantum Computing towards ML. Take for example Quantum Annealing which requires a different type of Quantum Computer and is not possible with TFQ. I may be off base. Please feel free to let me know what you think? $\endgroup$ – Darien Schettler Apr 15 at 15:52
  • 1
    $\begingroup$ It's true that TFQ only focuses on gate based devices because Google is working on gate-based processors. TFQ is only a month old with only one release(github.com/tensorflow/quantum/releases). So yes, it's immature in the sense that the software hasn't been used long enough. $\endgroup$ – Victory Omole Apr 16 at 1:21
12
$\begingroup$

First we should take a step back. Is there any machine learning done a quantum computer that cannot be efficiently simulated on a classical computer? The answer currently (2020) is no. In this respect quantum machine learning (which has many variants) is at the fundamental research phase. None of this is at a stage where it is at all considered something that should be mentioned in the same sentence with "production".

The last paragraph is probably a downer, but if you're a researcher it's an upper, because there are lots of open questions. There are a lot of really interesting ideas about how a quantum computer might be useful for machine learning. These differ on whether their data is quantum or classical, and how you put together different classical and quantum building blocks. The question is whether these will be useful for near term quantum computers (which have O(100) qubits and can computer for O(100) clock cycles before noise overwhelms them), and also whether they are interested for error correct quantum computers (think 5-15 years out). This is an area of active research. There is also a big caveat to what I said, and that is that while the quantum computations one might do can be classically simulated, in some cases, where your data is quantum, just being able do some small quantum computation on that quantum data can allow you to do things that you cannot do at all. These tasks are often "quantum sensor" problems, and are considered by many to be the first place practical quantum machine learning will be used.

So what is TensorFlow Quantum? It's a platform for doing research on quantum machine learning algorithms. It can be hooked up to a real quantum device, but where it excels right now is in performing classical simulations of quantum machine learning ideas. In particular it makes it very easy to do quantum machine learning with models that have quantum programs (quantum circuits) and classical machine learning (what people sometimes call hybrid algorithms) mixed together. It is integrated with TensorFlow and also with a framework for writing quantum programs Cirq. It is also backed by a highly efficient classical simulator of quantum programs, qsim. One advantage of TFQ is that it can leverage TensorFlow's ability to scale up training across a large distributed cluster. This, combined with the fast simulator, should allow researchers to quickly explore the space of possible research ideas.

Note that there are quite a few other quantum machine learning frameworks out there. These are all primarily aimed at helping researchers. Prominent ones are PennyLane and Microsoft's Quantum Machine Learning library in Q#. IBM also has nice tutorials on using their quantum programming framework for quantum machine learning.

| improve this answer | |
$\endgroup$
  • $\begingroup$ parts of this would probably also constitute a good answer to this other question by OP $\endgroup$ – glS Apr 16 at 7:06
  • $\begingroup$ It would indeed. I'd recommend, if dabacon would be so kind, that he post parts of this as an answer for the other linked question. If it represents a quality answer that covers everything I'll accept it there. Also thank you for the well thought out answer dabacon. I will accept it as the answer for this question. I would like to know more about 'quantum sensor problems' if you have a moment to further explain that? Anyone else please feel free to comment as this is definitely an evolving area of research and will need constant attention. Thanks again! $\endgroup$ – Darien Schettler Apr 16 at 15:40

Not the answer you're looking for? Browse other questions tagged or ask your own question.