Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change rate of change of time-varying gates #396

Open
lucainnocenti opened this issue Dec 8, 2017 · 4 comments
Open

Change rate of change of time-varying gates #396

lucainnocenti opened this issue Dec 8, 2017 · 4 comments

Comments

@lucainnocenti
Copy link

lucainnocenti commented Dec 8, 2017

The possibility of having time-changing gates (I mean gates like the X^t) is very useful.
However, sometimes the varying is too fast to appreciate some features.

Would it be possible to add an option to change the rate at which the gates change?

Ps: great tool!

@Strilanc
Copy link
Owner

Strilanc commented Dec 8, 2017

What exactly did you have in mind in terms of the rate?

It's actually very easy to change... in code. There's a single global config value that determines the cycle time of all gates. What's hard is picking a good rate. Right now I have it in a middle ground where sometimes I feel it's too slow and sometimes I feel it's too fast. Probably a lot of gates would benefit from increasing the cycle time as they got larger, but otherwise it's pretty decent.

Generally I prefer to avoid adding options like this to the UI, because it will quickly become overburdened. The toolboxes are already very daunting to new users, without adding a bunch of sliders on top of that. And there's the question of whether to associate the setting with the circuit or with the session, which I think will be confusing to people.

@lucainnocenti
Copy link
Author

lucainnocenti commented Dec 8, 2017

I think the ideal rate really depends on the case, so what I was talking about was a way to change it from case to case.

I understand what you mean in that you want to avoid complicating the UI. What about adding it as gate-dependent option, to be changed via right clicking on the gate? Or if just a global option, as something to be changed via an option in the menu?

Otherwise, can I change it easily via the console in the chrome development tools (or equivalent)?

@Strilanc
Copy link
Owner

Strilanc commented Dec 9, 2017

Yes, you can change it via the console. If you type in

$traceurRuntime.getModule("src/Config.js").Config.CYCLE_DURATION_MS = 20000

(including the $ sign) then the cycle time will be set to 20s instead of 8s.

@grayskripko
Copy link

grayskripko commented Dec 26, 2017

probably, it would be a good solution to hide all config options from UI and to give an access to it using only one button + modal popup. Or tabs.
I agree that UI can be overloaded. In my opinion, this is the case for the app now. Some rare buttons can be hidden with popups or tabs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants