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

Rui/update circuit init logic #115

Closed bbaayezi closed 3 years ago

bbaayezi commented 3 years ago

Purpose

Simplify quantum circuit initialisation logic without the use of event listeners and proxies. Proposed by issue #112.

Changes

Remove the use of quantumCircuit object and quantumCircuitConfig object in state manager. Send an explicit boolean message shouldInitCircuit to the last output of the quantum circuit node to initialise quantum circuit.

validateRegisterStrucutre in errors.js can be removed.