Tracing a Circuit in Its Declared Order
A circuit drawing and a matrix product can write composition in conventions that look reversed. Identify the first operation before combining their results.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace two gates from zero
With X first and Hadamard second, the intermediate state is one and the final state is minus. Swapping their order sends zero to plus and then keeps plus under X. See Hadamard basis action.
Use an independent ordering test
Compare one case whose final measurement differs in a suitable basis. Composition order applies whether the operations are written as matrices or arrows.[1][2]