pdft.circuit.select_last_n_cp_indices#
- pdft.circuit.select_last_n_cp_indices(tensors, n_gates)[source]#
Return indices of the LAST
n_gatescompact-CP tensors intensors.Mirror of upstream
get_*_gate_indices. Sorts by position in the list, then takes the lastn_gatessuch indices. After training tensors may drift slightly from the exact pattern; the unit-modulus check uses a moderate tolerance to absorb that.