Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Dancing with Qubits - Second Edition

You're reading from  Dancing with Qubits - Second Edition

Product type Book
Published in Mar 2024
Publisher Packt
ISBN-13 9781837636754
Pages 684 pages
Edition 2nd Edition
Languages
Author (1):
Robert S. Sutor Robert S. Sutor
Profile icon Robert S. Sutor

Table of Contents (26) Chapters

Preface I Foundations
Why Quantum Computing They’re Not Old, They’re Classics More Numbers Than You Can Imagine Planes and Circles and Spheres, Oh My Dimensions 6 What Do You Mean “Probably”? II Quantum Computing
One Qubit Two Qubits, Three Wiring Up the Circuits From Circuits to Algorithms Getting Physical III Advanced Topics
Considering NISQ Algorithms Introduction to Quantum Machine Learning Questions about the Future Afterword
A Quick Reference B Notices C Production Notes Other Books You May Enjoy
References
Index
Appendices

5.7 Length and preserving it

Length is a natural notion in the real world, but it needs to be defined precisely in vector spaces. Using complex numbers complicates things because we need to use conjugation. Length is related to magnitude, which measures how big something is. Understanding length and norms is key to the mathematics of quantum algorithms, as we shall see in Chapter 10, “From Circuits to Algorithms.” length

5.7.1 Dot products

Let V be a finite-dimensional vector space over R, and let v = (v1, v2, …, vn) and w = (w1, w2, …, wn) be two vectors in V.

The dot product · of v and w is the sum of the products of the corresponding entries in v and w: dot product product$dot ·`strong

Displayed math

If we think of v and w as row vectors and so as 1-by-n matrices, then

Displayed math

The dot product of the basis vectors e1 = (1, 0) and e2 = (0, 1) is 0. When this happens...

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 $15.99/month. Cancel anytime}