node-red-quantum / node-red-contrib-quantum

Quantum computing functionality for Node-RED
https://node-red-quantum.github.io/
Apache License 2.0
18 stars 2 forks source link

Multi controlled U gate dropdown list not conserved after clicking 'Done' #80

Open Theo-Reignier opened 3 years ago

Theo-Reignier commented 3 years ago

Bug Description

In the 'multi controlled U gate' node properties HTML interface, the 'relative position of target qubit' dropdown list is not working properly.

When changing the target qubit and clicking 'Done', the node settings are saved and the Qiskit script generated is correct. However if the user opens the node properties again, instead of having the dropdown list displaying the previous user setting, the dropdown list always display the first option as default.

Screenshot 2021-08-12 at 19 31 12

Expected Behaviour & Actual Behaviour

If the user selects 'Qubit b' as the 'Relative position of target qubit', after clicking 'Done' and opening the node properties again, the dropdown list should still display the 'Qubit b' option.

System Information