mimiqcircuits.decomposition.basis.flattened

Flattened decomposition basis.

Classes

FlattenedBasis()

Flatten container operations while leaving all other operations untouched.

class mimiqcircuits.decomposition.basis.flattened.FlattenedBasis[source]

Bases: DecompositionBasis

Flatten container operations while leaving all other operations untouched.

isterminal(op)[source]

Containers are non-terminal; all other operations are terminal.

decompose(op, qubits, bits, zvars)[source]

Decompose one container expansion step using FlattenContainers.