setups

The setups package contains a collection of setups which can be loaded using an import statement. Each setup then loads its own set of decomposition rules and default compiler engines.

Submodules

default module

The default module features a standard set of decomposition rules, compiler engines, and the simulator backend.

Registers a variety of useful gate decompositions. Among others it includes

  • Controlled z-rotations –> Controlled NOTs and single-qubit rotations
  • Toffoli gate –> CNOT and single-qubit gates
  • m-Controlled global phases –> (m-1)-controlled phase-shifts
  • Global phases –> ignore
  • (controlled) Swap gates –> CNOTs and Toffolis

Module contents