HiddenLinearFunction.diag_gate

HiddenLinearFunction.diag_gate(diag, qubit)

Deprecated version of QuantumCircuit.diagonal.