Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Quantum Computing Algorithms

You're reading from   Quantum Computing Algorithms Discover how a little math goes a long way

Arrow left icon
Product type Paperback
Published in Sep 2023
Publisher Packt
ISBN-13 9781804617373
Length 342 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Barry Burd Barry Burd
Author Profile Icon Barry Burd
Barry Burd
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface 1. Introduction to Quantum Computing 2. Part 1 Nuts and Bolts FREE CHAPTER
3. Chapter 1: New Ways to Think about Bits 4. Chapter 2: What Is a Qubit? 5. Chapter 3: Math for Qubits and Quantum Gates 6. Chapter 4: Qubit Conspiracy Theories 7. Part 2 Making Qubits Work for You
8. Chapter 5: A Fanciful Tale about Cryptography 9. Chapter 6: Quantum Networking and Teleportation 10. Part 3 Quantum Computing Algorithms
11. Chapter 7: Deutsch’s Algorithm 12. Chapter 8: Grover’s Algorithm 13. Chapter 9: Shor’s Algorithm 14. Part 4 Beyond Gate-Based Quantum Computing
15. Chapter 10: Some Other Directions for Quantum Computing 16. Assessments 17. Index 18. Other Books You May Enjoy

Chapter 1, New Ways to Think about Bits

    1. 1 times 128 space plus space 0 times 64 space plus space 1 times 32 space plus space 1 times 16 space plus space 1 times 8 space plus space 0 times 4 space plus space 0 times 2 space plus space 1 times 1 space equals space 185
    2. 1 times 5 space plus space 0 times 8 space plus space 3 times 4 space plus space 2 times 4 space equals space 25
    3. open parentheses table row 1 0 0 0 row 0 1 1 1 end table close parentheses space circled times space open parentheses table row 0 1 row 1 0 end table close parentheses space equals space open parentheses table row cell 1 space open parentheses table row 0 1 row 1 0 end table close parentheses space end cell cell 0 space open parentheses table row 0 1 row 1 0 end table close parentheses space end cell cell 0 space open parentheses table row 0 1 row 1 0 end table close parentheses end cell cell 0 space open parentheses table row 0 1 row 1 0 end table close parentheses end cell row cell 0 space open parentheses table row 0 1 row 1 0 end table close parentheses end cell cell 1 space open parentheses table row 0 1 row 1 0 end table close parentheses space end cell cell 1 space open parentheses table row 0 1 row 1 0 end table close parentheses space end cell cell 1 space open parentheses table row 0 1 row 1 0 end table close parentheses space end cell end table close parentheses space equals space open parentheses table row 0 1 0 0 0 0 0 0 row 1 0 0 0 0 0 0 0 row 0 0 0 1 0 1 0 1 row 0 0 1 0 1 0 1 0 end table close parentheses
    1. import numpy as np
      A = np.matrix( [[1, 2, 3, 0],
                      [2, 1, -1, 3]] )
      B = np.matrix( [[1, 1, -2],
                      [3, 2, -1],
                      [0, 4, 3],
                      [3, -3, 5]] )
      print(np.dot(A, B))
    import numpy as npA = np.matrix( [[2],
                    [3],
                    [1]] )
    B = np.matrix( [[8, 4, 0],
                ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime