Have a personal or library account? Click to login
Dancing with Python Cover

Dancing with Python

Learn to code with Python and Quantum Computing

Paid access
|Sep 2021
Product purchase options

Develop skills in Python and Quantum Computing by implementing exciting algorithms, mathematical functions, classical searching, data analysis, plotting data, machine learning techniques, and quantum circuits.

Key Features

  • Create quantum circuits and algorithms using Qiskit and run them on quantum computing hardware and simulators
  • Learn the Pythonic way to write elegant and efficient code
  • Delve into Python's advanced features, including machine learning, analyzing data, and searching

Book Description

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.

What you will learn

  • Explore different quantum gates and build quantum circuits with Qiskit and Python
  • Write succinct code the Pythonic way using magic methods, iterators, and generators
  • Analyze data, build basic machine learning models, and plot the results
  • Search for information using the quantum Grover Search Algorithm
  • Optimize and test your code to run efficiently

Who this book is for

The book will help you get started with coding for Python and Quantum Computing. Basic familiarity with algebra, geometry, trigonometry, and logarithms is required as the book does not cover the detailed mathematics and theory of quantum computing. You can check out the author’s Dancing with Qubits book, also published by Packt, for an approachable and comprehensive introduction to quantum computing.

Table of Contents

  1. Doing The Things That Coders Do
  2. Working with Expressions
  3. Collecting Things Together
  4. Stringing You Along
  5. Computing and Calculating
  6. Defining and Using Functions
  7. Organizing Objects into Classes
  8. Working with Files
  9. Understanding Gates and Circuits
  10. Optimizing and Testing Your Code
  11. Searching for the Quantum Improvement
  12. Searching and Changing Text
  13. Creating Plots and Charts
  14. Analyzing Data
  15. Learning Briefly
  16. Appendix A Tools
  17. Appendix B. Staying Current
  18. Appendix C The Complete UniPoly Class
  19. Appendix D The Complete Guitar Class Hierarchy
  20. Appendix E. Notices
  21. Appendix F. Production Notes
https://github.com/PacktPublishing/Dancing-with-Python
PDF ISBN: 978-1-80107-162-8
Publisher: Packt Publishing Limited
Copyright owner: © 2021 Packt Publishing Limited
Publication date: 2021
Language: English
Pages: 744