pdft.circuit.hadamards_then_layers#
- pdft.circuit.hadamards_then_layers(layer, count, m, n, phases, parametrization)[source]#
A Hadamard on every qubit, then one layer of phase gates on each register.
The shape TEBD and MERA share; they differ in the layer.
count(n_qubits)is the number of gates in a register’s layer andlayer(n_qubits, offset, phases, gate)emits them, building each withgate(q_ctrl, q_tgt, phi).phasesholds the row layer’s angles and then the column layer’s;Nonemeans all zero. Returns(gates, n_row_gates, n_col_gates).