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

Simultaneous 2Q iRB errors, and should be forbidden #218

Open
4 tasks done
mhodson-rigetti opened this issue Sep 13, 2021 · 0 comments
Open
4 tasks done

Simultaneous 2Q iRB errors, and should be forbidden #218

mhodson-rigetti opened this issue Sep 13, 2021 · 0 comments

Comments

@mhodson-rigetti
Copy link

mhodson-rigetti commented Sep 13, 2021

Tell us the versions of your environment (ensure you are running the latest):

  • forest benchmarking version: 0.8.0 (pre-release branch)
  • pyQuil version: 3.0.0
  • qvm version: latest
  • quilc version: 1.23.0

The documentation for randomized benchmarking mentions capabilities for RB, simultaneous RB, and interleaved RB. All experiments are generated via generate_rb_experiments(). Simultaneous RB takes in multiple groups; interleaved RB takes in an interleaved gate.

As it turns out, you cannot do simultaneous, interleaved RB. If you try, e.g. providing an interleaved gate program with several 2Q gates and matching groups, you will get an error. Such a use case it a little nonsensical given the restriction for serial 2Q execution on QPU.

To reproduce:

benchmarker = BenchmarkConnection()  # from pyquil v3
program = Program()
program += CZ(30, 31)
program += CZ(32, 33)
generate_rb_experiments(benchmarker, [(30, 31), (32, 33)], [2, 10], interleaved_gate=program)

Recommend a consistency check be added to fail gracefully.

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

1 participant