pdft.circuit.phase_gate#
- pdft.circuit.phase_gate(parametrization)[source]#
The constructor
gate(q_ctrl, q_tgt, phi)of a controlled phase in one of its two forms."cp"stores the gate as the compact diagonal tensor, trained onU(1)^4."u4"stores the same operator as a dense two-qubit tensor, trained onU(4): both start equal for a givenphiand differ only in the manifold they relax over.