qfnn.qf_circ.u_lyr_circ module¶
- class qfnn.qf_circ.u_lyr_circ.U_LYR_Circ(n_qubits, n_repeats)¶
Bases:
qfnn.qf_circ.base.LinnerCircuit
U_LYR_Circ is a class, which includes functions to build u-layer
- Parameters
n_qubits – input qubits of each unit
n_repeats – repeat times of each unit
- classmethod extract_from_weight(weights)¶
Function extract_from_weight : transform the weights of the nets into the gates of qubits.
- Parameters
weights – the weights of nets
- Returns
The mapped gate list ,such as 0010.
- Return type
gates