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

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

Quantum Circuit doesn't get initialized correctly when in "registers" mode #108

Closed ttoktassynov closed 3 years ago

ttoktassynov commented 3 years ago

Bug Description

There is a bug in circuit initialization logic, particularly when creating a quantum circuit in "Register" mode, than there is an error.

Steps to Reproduce Bug

Create a flow with one quantum and one classical register and run it, as in picture below: Screen Shot 2021-08-30 at 15 10 41

Expected Behaviour & Actual Behaviour

Expected behavior is that I will a response {"10": 1}, but I receive error that quantum circuit is not initialized.

Additional Information

System Information

ttoktassynov commented 3 years ago

It was resolved in mentioned PR