CQCL / tket

Source code for the TKET quantum compiler, Python bindings and utilities
https://docs.quantinuum.com/tket/
Apache License 2.0
260 stars 47 forks source link

Initialise a `UnitaryTableau` from a parity matrix #1473

Open CalMacCQ opened 5 months ago

CalMacCQ commented 5 months ago

A boolean linear transformation on $n$ qubits can be specifed by an $(n \times n)$ binary matrix and implemented with a CNOT circuit. A CNOT circuit is clearly Clifford.

Maybe it'd be nice to have a method like UnitaryTableau.from_parity_matrix or similar for this. Turns out you can construct a Tableau fairly directly by taking the transpose of the parity marix and putting it in the blocks of the Tableau.

Originally suggested by @willsimmons1465

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale.