You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
qviz.create(sampleCircuit).useDraggable().usePanel()/* without options */.draw(sampleDiv)
constcustomGateDictionary={/* ... */}qviz.create(sampleCircuit).useDraggable().usePanel({gateDictionary: customGateDictionary})/* pass in gateDictionary will extend available gates in Add Panel */.draw(sampleDiv)
useOnCircuitChange(callback)
Trigger callback function when circuit changes
Params
callback (circuit) => void - user-provided callback to trigger when circuit changes