rigetti / rigetti/pyquil

Device.get_isa fails without a clear error when specs are not provided

Open
#1,002 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug :bug:
Dominant language
Python
Stars
1.5k
Forks
358
Avg merge
1d 58m
Merged PRs (30d)
4

Description

Issue Description

Device.get_isa tries to read out fROs and f1QRBs from the underlying specs, but this fails if the raw dict provided to Device.__init__ does not include specs. I think at the very least this should provide a nicer error message, or perhaps to actually use the defaults in this case.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Device.get_isa and Device.init, focusing on how a raw dictionary without specs is handled before fROs and f1QRBs are read. Reproduce the failure with missing specs, then clarify whether the intended result is a helpful error or use of defaults; done means the chosen behavior is explicit and covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
quantum-computing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.