Posts

Showing posts with the label Dirac

Coding Your First Quantum Computer Program

Image
 We'll dive right in and assume no experience with programming quantum computers or working with quantum physics. In the previous post, I described the difference between computers' digital transistor logic bit and the quantum computer qubit. Now let's dive in and examine the qubit. All information in the quantum computer is expressed as state vectors using Dirac notation. Please don't get frustrated with the terminology. We're going to walk through this using simple examples. To learn quantum computing, you need to think in the mindset of linear algebra. For example, a qubit is simply a two-element matrix. A qubit of state 0 is merely the matrix (1 0). Likewise, a qubit of state 1 is the matrix (0 1). These two matrices represent linear algebra vectors. Since these values represent the qubit's state, 0 or 1, these are called quantum state vectors. Dirac and Bra-Ket Notation Quantum physics uses special notation to represent these quantum state vectors called Di...