qp.labs.phox.create_local_gates¶
- create_local_gates(n_qubits, max_weight=2)[source]¶
Generates a gate dictionary for the Phox simulator containing all gates whose generators have Pauli weight less or equal to max_weight.
Each gate is assigned a unique parameter index.
- Parameters:
n_qubits (int) – The number of qubits.
max_weight (int) – Maximum Pauli weight of gate generators.
- Returns:
Gate structure mapping parameter indices to qubit lists.
- Return type:
dict[int, list[list[int]]]