pdft.circuit.hadamards_then_layers

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 and layer(n_qubits, offset, phases, gate) emits them, building each with gate(q_ctrl, q_tgt, phi). phases holds the row layer’s angles and then the column layer’s; None means all zero. Returns (gates, n_row_gates, n_col_gates).

Parameters:
Return type:

tuple[list[Gate], int, int]