# Day 7 and 8 of 30DaysOfQC Challenge

Finished the third chapter, Linear Algebra, of the Introduction to Classical and Quantum Computing book. Next, we'll delve into the domain of multiple qubits.

I’ve finished the third chapter of the Introduction to Classical and Quantum Computing which was all about *Linear Algebra*. In the previous section, we learned about qubits from a trigonometric perspective, while in this chapter, we learned about some of the linear algebra prerequisites to understand qubits and how to represent and calculate different states using linear algebra.

# Lessons learned

Day 7 of #30DaysOfQC Only halfway through the third chapter of Thomas Wong's book. Had a headache and slight fever so couldn't dedicate much time to this, otherwise I was hoping that I'd get it done today. #QuantumComputing

— Aadam (@aadimator) January 22, 2022

We started off by learning how *kets* can be represented as column vectors, and how *bras* are obtained by calculating the conjugate transpose of a *ket*. We then learned about the inner product of two kets, performed by multiplying a *bra* and a *ket*, and how it is always a scalar value. We then learned about the idea of **orthonormal** states, i.e. states that are both normalized as well as orthogonal to each other. We say how inner products can be used to find the amplitudes and orthonormality of a state in a certain basis.

We also learned how quantum gates are just matrices that act on a certain state (vector) to transform it. We saw matrix representations of common one-qubit quantum gates, and how we can apply them sequentially to perform some computation. We then looked at two of the most important properties of quantum gates, i.e. Unitarity (quantum gates are unitary matrices) and reversibility (a quantum gate is always reversible). In the end, we learned about outer products of two states (which always returns a matrix) and the completeness relation i.e. $\ket a \bra a + \ket b \bra b = I$.

Day 8 of #30DaysOfQC: Almost forgot to give an update. I'm done with the third chapter of Thomas Wong's Introductory book on #QuantumComputing. Tomorrow, I'll try to complete the fourth chapter, InshaAllah.

— Aadam (@aadimator) January 23, 2022

# Moving forward

I was hoping to finish this chapter in a single day, but slight fever and headache came in my way and I wasn’t able to ☹️. Next chapter in the book is quite a hefty one, and I think it’ll take me at least 2 days to finish (note taking takes up most of the time). I’ll update you guys once I’m done with that, be it 2 days or 3. Talk to you then.

# PDF Notes

My notes on the second Chapter of the Thomas Wong’s Introduction to Classical and Quantum Computing book.