placements

property EntanglerGateSet.placements: Tuple[Tuple[str, Tuple[int, ...]], ...]

Return where a native entangler sits, and which one.

Each entry is a (key, qubits) pair. qubits is the placement: the entangler’s qubits in the order the gate is applied to them, so (0, 1) and (1, 0) are different placements of a directed gate. key names which entangler the gate set puts there, looked up in the gate set’s entangler catalogue when it holds more than one.

An entangler’s arity is the placement’s length: two for a pairwise gate, more for one that entangles a whole group at once.