Seems to be old code in Codercise I.13.4

Hi there! Hope you’re doing well.

It seems like the explanation preceding Codercise I.13.4 may contain old code.

It says to use 'qml.MultiControlledX(control_wires=[0, 1, 2], wires=4, control_values="001")`

but this gave me an error: Error: MultiControlledX.__init__() got an unexpected keyword argument 'control_wires'.

Using qml.MultiControlledX(wires=[0, 1, 2, 3], control_values=[0, 0, 1]) works.

Thanks!

Hi @PranavUpreti! Welcome to the forum.
Yes, you are definitely right about this. Thank you for reporting this.
I’ll correct it asap.

1 Like