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
  1. Trace two gates from zero
  2. Use an independent ordering test

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]

References

  1. John Watrous, The Theory of Quantum Information ↩
  2. John Watrous, IBM Quantum Learning: Basics of Quantum Information ↩