From 147267eff1018ff1ef8cf731986c5c63de0441ac Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Mon, 12 Jan 2026 14:08:03 +0100 Subject: [PATCH] select random values from the correct range --- src/tf-qas.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tf-qas.py b/src/tf-qas.py index eaf9bd0..e7b2a80 100755 --- a/src/tf-qas.py +++ b/src/tf-qas.py @@ -160,7 +160,10 @@ class QuantumCircuit: nexp = 2 * samples # vectorized binds: one circuit, many parameter values binds: list[dict[ParameterVectorElement, list[float]]] = [ - {param: [rng.random() for _ in range(nexp)] for param in thetas.params} + { + param: [rng.random() * 4 * math.pi - 2 * math.pi for _ in range(nexp)] + for param in thetas.params + } ] job = backend.run([tqc], parameter_binds=binds)