Skip to content

Conversation

@jlapeyre
Copy link
Contributor

@jlapeyre jlapeyre commented Aug 6, 2025

This allows the caller of the functions gridsynth and gridsynth_gates to pass epsilon of type float, rather than requiring an mpf.

One expects that epsilon may be a float. This will help avoid bugs due to this expectation.

This allow the caller of the functions gridsynth and gridsynth_gates
to pass epsilon of type `float`, rather than requiring an mpf.

One expects that epsilon may be a `float`. This will help avoid bugs due to
this expectation.
@NnktYoshioka
Copy link
Contributor

Hi @jlapeyre, thank you very much for pointing this out.

You're absolutely right that we should allow float as input.
In practice, we should also tune mpmath.mp.dps in the high-precision regime (e.g., dps ~ 256 for epsilon ~ 1e-100).
We'll update the code soon so that it automatically adjusts these hyperparameters as well.

@jlapeyre
Copy link
Contributor Author

jlapeyre commented Aug 7, 2025

I think that is correct.

I agree, it's a great idea to adjust the hyperparameters automatically as well. Presumably, the adequate dps depends on epsilon, but not on the angle.

@NnktYoshioka
Copy link
Contributor

This will be taken care of in different thread such as #9

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

Successfully merging this pull request may close these issues.

2 participants