Sequence of Gates as Matrix Multiplication

When writing quantum programs for your applications, knowing how the qubelets end up helps you decide when and where to inject quantum effects so that your program returns the optimal solution with a high likelihood. So having a way to succinctly describe how a quantum gate acts on any quantum state of a qubit is useful. The real value, though, of holding a gate’s “genomic code” is figuring out how a sequence of gates modifies a qubit’s quantum state. For example, consider the quantum circuit shown in the following figure:

images/quantum_gates_algebra/0_H_SDag_Rx_30_T_Rx_90.png

Working out the cumulative effect of these gates on the qubit is cumbersome. ...

Get Quantum Computing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.