Book Image

Quantum Computing Algorithms

By : Barry Burd
5 (1)
Book Image

Quantum Computing Algorithms

5 (1)
By: Barry Burd

Overview of this book

Navigate the quantum computing spectrum with this book, bridging the gap between abstract, math-heavy texts and math-avoidant beginner guides. Unlike intermediate-level books that often leave gaps in comprehension, this all-encompassing guide offers the missing links you need to truly understand the subject. Balancing intuition and rigor, this book empowers you to become a master of quantum algorithms. No longer confined to canned examples, you'll acquire the skills necessary to craft your own quantum code. Quantum Computing Algorithms is organized into four sections to build your expertise progressively. The first section lays the foundation with essential quantum concepts, ensuring that you grasp qubits, their representation, and their transformations. Moving to quantum algorithms, the second section focuses on pivotal algorithms — specifically, quantum key distribution and teleportation. The third section demonstrates the transformative power of algorithms that outpace classical computation and makes way for the fourth section, helping you to expand your horizons by exploring alternative quantum computing models. By the end of this book, quantum algorithms will cease to be mystifying as you make this knowledge your asset and enter a new era of computation, where you have the power to shape the code of reality.
Table of Contents (19 chapters)
Free Chapter
2
Part 1 Nuts and Bolts
7
Part 2 Making Qubits Work for You
10
Part 3 Quantum Computing Algorithms
14
Part 4 Beyond Gate-Based Quantum Computing

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],
                ...