quantum icon indicating copy to clipboard operation
quantum copied to clipboard

Is the parameters input in the same manner for two different `tfq.layers`?

Open Shuhul24 opened this issue 1 year ago • 1 comments

I am using two different layers: tfq.layers.ControlledPQC and tfq.layers.State. But the circuit, parameter symbols and parameters values are same. Is the manner in which these parameter values / weights get distributed same for evaluating tfq.layers.ControlledPQC and tfq.layers.State?

Shuhul24 avatar Feb 28 '23 19:02 Shuhul24

For state, the user explicitly maps the parameter names and their values, assuming the parameter names are the same in the ControlledPQC, then yes (also true if you specify the names in values to the ControlledPQC)

lockwo avatar Feb 28 '23 19:02 lockwo