Strilanc / Quirk

A drag-and-drop quantum circuit simulator that runs in your browser. A toy for exploring and understanding small quantum circuits.

Home Page:http://algassert.com/quirk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Formula gate with invalid formula is seen as time dependent

Strilanc opened this issue · comments

It seems that a bad formula is a custom disable reason of a gate.
Could a disabled gate set "_hasNoEffect" or stableDuration to Infinity?

I've attached a PR that offers one approach, but it may not be the best one.