qubit_kinds

XeedQBackend.qubit_kinds(gate, gateset)

Return the kind of spin at each of a gate’s qubits.

Topological by default, read off the gate set: a qubit its topology places at the centre of a part is central, every other qubit outer.

Parameters:
  • gate (Gate) – Native gate of gateset.

  • gateset (GateSet) – Gate set the gate belongs to, asked which qubits are central.

Return type:

Tuple[str, ...]

Returns:

One kind per gate qubit, in Gate.qubits order.