Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

RB rand_seed causes gates for different qubits to be the same #491

Closed
dekelmeirom opened this issue Sep 6, 2020 · 2 comments
Closed

RB rand_seed causes gates for different qubits to be the same #491

dekelmeirom opened this issue Sep 6, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@dekelmeirom
Copy link
Contributor

dekelmeirom commented Sep 6, 2020

What is the current behavior?

when generating RB sequence using a seed, the gates of all the qubits with the same pattern size are the same

Steps to reproduce the problem

create a rb_opts dict with 'rand_seed' other than null, and call 'randomized_benchmarking_seq' with that dict.
look at the circuit created (for example look at the first circuit of the first seed - circuit[0][0]), and see that the gates on each qubit are the same (for a pattern of alone qubits, like [[0],[1],[2],[3]])

What is the expected behavior?

the gates for each qubit should be randomised separately with a fixed seed (fixed, but different for each qubit)

Suggested solutions

add the seed number to the rand_seed, so each qubit will have a fixed but different seed

@chriseclectic
Copy link
Collaborator

This sounds like an example where it would be much better to share a single default_rng object set with a seed between the different sequence generations than passing the seed value itself.

@ShellyGarion
Copy link
Contributor

close by #492

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants