-
Notifications
You must be signed in to change notification settings - Fork 55
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
Various QILGST bugfixes #351
Comments
I have one more bug report--would you prefer I send it over email, comment it here, or add it to the initial comment? Thanks for following up on this! I'll also endeavor to learn the GitHub process as I'm still rather new to it. |
Haha you beat me to it! Yes please go ahead and add it here. If you can edit the initial comment to make a new checkbox item that would be awesome. But you may not be able to, in which case you can just make a new comment and I will update the initial comment. |
Looks like you can edit that initial comment, so that's awesome. If you have a minimum working example and could upload it also, that would be super helpful. |
I'm trying to figure out where to upload that right now. Where did you put the Wildcard file? |
When you edit the comment, do you have a "Attach filed by dragging & dropping" down at the very bottom? I drag & dropped the file there, and then it should just give you some Markdown text with a caption in square braces and a link in parenthesis. Don't change the link, but you can change the caption in square braces and then copy/paste that whole text string wherever you want (i.e. next to the item in the list would be great). |
Just updated the main comment--ran into another issue when trying to write an IBMQ Experiment. |
I think I have an (incomplete) version of auto embedding for QIs working! |
I have a patch on the html problem! The problem is on lines 1215 and 2443 of workspacetable.py and affects two tables: GateVsTargetTable and GateEigenvalueTable. I think both appear in the "Germs Detail" section of the report. The code was hardcoded for all germs in 'virtual_ops' that were not a single quantum instrument to be treated as gate germs. I added a line enforcing that those additional germs be fully composed of gates, which results in the mixed instrument gate germs being skipped. The html report now generates, but the germs detail section is somewhat incomplete. At this point, this is not a problem for the project. I'll push the fix shortly. |
Additional feature requests (not urgent and may require some thought):
|
I think I found the root bug for the non-JSONable instruments on IBMQExperiment.write(). The processor spec associated with the initial StandardGSTDesign includes the instrument in a non-JSONable form in 'nonstd_instruments.' This means that the ProtocolData can't be written: Additionally, there seems to be a bug where standard gate unitaries are included in 'nonstd_gate_unitaries.' Is there a reason why this is done? I can pretty easily fix it. See this notebook for details of both of the above. Some of this seems to trace back to there being no concept of a standard instrument (as is the case for gates in internalgates.py) and my incomplete implementation of an embedded instrument (modelmembers/instruments/EmbeddedInst.py). I think the "'nonstd_instruments' ProtocolData" and the "standard gate unitaries reported as nonstandard gate unitaries" bugs come in with the definition of 'create_processor_spec' in ExplicitModel.py. I think something like 'extract_unitary' needs to be written for instruments and the processor spec needs to be defined so that the standard gate unitaries don't get listed as nonstandard gate unitaries. I'm a bit stuck right now on the instrument problem, as the 'extract_unitary' function is a bit obtuse to me. |
More complete bug report for the above (gives a non-working example of the ProtocolData error message): |
The pspec instrument JSON bug is now fixed in bf2a082. |
The feature-ibm-devices branch was merged into develop in #359, so all the items labeled as fixed should be live in develop. |
@sserita It looks like the pspec instrument bug never really died. I made a mistake while testing it and it appears there's some subtle differences in the pspec after loading from a directory that causes GST to run. Here's a notebook exhibiting the problem: I'm planning to take a look, since it appears to be a simple problem. It is not blocking as I have work arounds for this issue. |
I just implemented some fixes (not yet committed) for text wrapping of the hover labels. |
@sserita Just rearranged and added the three issues we discussed. |
Describe the bug
There are several bugs that have been discovered regarding QILGST in v0.9.11.2 during the addition of support for IBMQ experiments with midcircuit measurements. This is a thread to keep track of them all, as well as when/where they are fixed. The below list will be updated as individual bugs are added/resolved.
Critical issues (0.9.13)
Feature requests (0.9.14+)
Resolved issues
id
instruction in IBMQ (fixed in Feature ibm device #359)Environment (please complete the following information):
Cannot pickle locks:
QI not JSON-able (occurred when trying to write combined experiment):
Deprecated
id
:Outcome labels in reports:
HTML with additional germs:
The text was updated successfully, but these errors were encountered: