# Quantum Computing: Wrong X gate in circuit for AH2 and |q1\> (page 309)

**URL:** <https://forum.devtalk.com/t/quantum-computing-wrong-x-gate-in-circuit-for-ah2-and-q1-page-309/56724>\
**Category:** PragProg Customers\
**Tags:** book-quantum-computing, errata\
**Created:** [26 May 2022 15:18 UTC](https://forum.devtalk.com/t/quantum-computing-wrong-x-gate-in-circuit-for-ah2-and-q1-page-309/56724 "2022-05-26T15:18:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nihal.mehta](https://forum.devtalk.com/user_avatar/forum.devtalk.com/nihal.mehta/32/2488_2.png) [@nihal.mehta](https://forum.devtalk.com/u/nihal.mehta)\
**Post date:** [27 May 2022 04:40 UTC](https://forum.devtalk.com/t/quantum-computing-wrong-x-gate-in-circuit-for-ah2-and-q1-page-309/56724/2 "2022-05-27T04:40:17Z")

</div>

Hello,  
Yes you are correct. The bottom gate in the left AH2 block should be an H gate, not X as shown. The figure is incorrect.  
The matrix equation at the bottom of the page is also incorrect. Specifically, the matrix on the right of the 5 matrix multiplication should be replaced with the matrix on the left. The result though is correct.  
Thanks for pointing this out.  
Best,  
Nihal

---

_[View the full topic](https://forum.devtalk.com/t/quantum-computing-wrong-x-gate-in-circuit-for-ah2-and-q1-page-309/56724)._
