Book Image

Dancing with Python

By : Robert S. Sutor
Book Image

Dancing with Python

By: Robert S. Sutor

Overview of this book

Dancing with Python helps you learn Python and quantum computing in a practical way. It will help you explore how to work with numbers, strings, collections, iterators, and files. The book goes beyond functions and classes and teaches you to use Python and Qiskit to create gates and circuits for classical and quantum computing. Learn how quantum extends traditional techniques using the Grover Search Algorithm and the code that implements it. Dive into some advanced and widely used applications of Python and revisit strings with more sophisticated tools, such as regular expressions and basic natural language processing (NLP). The final chapters introduce you to data analysis, visualizations, and supervised and unsupervised machine learning. By the end of the book, you will be proficient in programming the latest and most powerful quantum computers, the Pythonic way.
Table of Contents (29 chapters)
Part I: Getting to Know Python
PART II: Algorithms and Circuits
PART III: Advanced Features and Libraries
Other Books You May Enjoy
Appendix C: The Complete UniPoly Class
Appendix D: The Complete Guitar Class Hierarchy
Appendix F: Production Notes

B.4 Asking questions and getting answers

When you do a web search about how to do something in Python, there is an excellent chance you will end up at Stack Overflow:

You will see questions and answers to straightforward and challenging problems. If you sign in and participate, over time, you can up-vote and down-vote questions and answers. Many answers are helpful, but some are incorrect or posted by non-experts. In any case, you will likely find some code that you can use or modify for your project.

You can learn a lot by browsing the questions people ask, even if you don’t have an immediate need for the code. You will learn what others are doing with Python. You can ask your own questions but always do a thorough web search first. It is frustrating to experts if you do not respect their time by doing your basic research first.