finish expressibility calculation

This commit is contained in:
Noa Aarts 2026-01-12 11:35:58 +01:00
parent c0a27cecce
commit f8577f34af
Signed by: noa
GPG key ID: 1850932741EFF672

View file

@ -136,7 +136,7 @@ class QuantumCircuit:
q = q / q.sum() q = q / q.sum()
kl = kl_divergence(p, q) kl = kl_divergence(p, q)
self.expressibility = kl self.expressibility = -kl
return self return self
@override @override
@ -229,7 +229,7 @@ if __name__ == "__main__":
rng = random.Random() rng = random.Random()
qubits = 6 qubits = 6
depth = 15 depth = 15
sample_amount = 5000 sample_amount = 50000
expressibility_samples = 2000 expressibility_samples = 2000
proxy_pass_amount = 5000 proxy_pass_amount = 5000
circuits = ( circuits = (