liveBook · Manning

Permutation matrix

As explained in Quantum Programming in Depth

A permutation matrix is a binary square matrix with exactly one 1 in every row and column.

A permutation matrix is a square binary matrix with exactly one 1 in every row and column. As a quantum operation, it represents a reversible classical computation: each input bit string maps to exactly one output bit string, and vice versa. section 3.0

Recognize a permutation matrix by these properties:

  • Contains only 0 and 1 entries. section 3.0
  • Contains exactly one 1 in each row and each column. section 3.0
  • Can often be implemented more efficiently by analyzing the corresponding classical computation. section 3.0
Figure 3.1 Any quantum algorithm can be broken down into several steps: prepare the initial state, evolve it by applying unitary transformations, and measure the final state. In this chapter, we’ll learn to perform the second step: implementing unitary transformations as the algorithm dictates.
figure

Places permutation-matrix operations within the broader quantum-algorithm flow: prepare a state, apply unitary transformations, and measure. section 3.0

How Quantum Programming in Depth covers it

How deep it goes
Defines the binary row-and-column structure and implementation significance, while deferring reversible-computation details.
Examples
Uses binary square matrices and reversible classical input-output mappings as its concrete illustrations.
What it assumes
Assumes matrix terminology and unitary operations, while refreshing the defining binary row-and-column conditions.
What you can do after
Build it from scratch by recognizing when a quantum operation has permutation-matrix structure and selecting specialized implementation analysis.
How it connects
Connects permutation matrices with unitary matrices, quantum operations, reversible computation, and classical bit-string transformations.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Quantum Programming in Depth. The section links point to the parts of the book it draws on.