mqt.qecc.circuit_synthesis.exact.vars¶
Variable containers for Clifford exact synthesis encodings.
Classes¶
SAT variables for a Clifford gate-count encoding instance. |
|
SAT variables for a Clifford depth encoding instance. |
Module Contents¶
- class CliffordGateCountVars[source]¶
SAT variables for a Clifford gate-count encoding instance.
- solver¶
Configured Z3 solver with all encoding constraints already added.
- gate_sel¶
Map from gate name to per-slot selection booleans. Exactly one entry across all gate names is True per slot (enforced by a PbEq constraint in the encoding). The identity gate
"ID"is never present — it is a depth-only concept.
- alpha¶
Per-slot first-qubit index (target for single-qubit gates, control for two-qubit gates).
- beta¶
Per-slot second-qubit index (only meaningful for two-qubit gates).
- gate_set¶
Gate classes used during encoding, keyed by gate name. Needed by consumers (symmetry breaking, extraction) to determine gate properties such as
IS_SELF_INVERSEandIS_TWO_QUBIT.
- class CliffordDepthVars[source]¶
SAT variables for a Clifford depth encoding instance.
- solver¶
Configured Z3 solver with all encoding constraints already added.
- gate_vars¶
Map from gate name to
[layer][idx]boolean arrays. The length of the inner list encodes the gate’s index structure:nentries → single-qubit gate;idxis the qubit index.n*(n-1)entries → ordered two-qubit gate (CX-like);idxencodes the ordered pair asctrl*(n-1) + (tgt if tgt < ctrl else tgt-1).n*(n-1)//2entries → symmetric two-qubit gate (CZ-like);idxencodes the unordered pair asi*(2n-i-1)//2 + (j-i-1)withi < j.
- n¶
Number of qubits; needed by consumers to decode pair indices.
- gate_set¶
Gate classes used during encoding, keyed by gate name. Needed by consumers (symmetry breaking, extraction) to determine gate properties such as
IS_SELF_INVERSE.