Uh oh!
There was an error while loading. Please reload this page.
Feature/cqc conditionals - #35
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Wojtek242
left a comment
There was a problem hiding this comment.
Very good Victor!
I only made a few small comments. Basically:
- Axel needs to approve all your deprecation changes
- I like your use of enums, they are much better at self documenting
Also, you will need to make the CI build pass - I assume that means you need to make all the old tests pass with your new changes. If you have time, please also add tests for your new changes. If you don't let me know about that.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi @VictorPrins! Could you rebase to the newest develop to fix the merge conflicts? |
AckslD
left a comment
There was a problem hiding this comment.
@VictorPrins nice work! I made some comments, mostly smaller ones. Let me know if you have time to look over these. FYI, I made some comments which start with "Nit:", those are just smaller things which you can just ignore if you don't agree.
One thing I'm missing are tests and one or two examples for how to use the new functionality. I think you already have some examples in your thesis. Could you add that to here? Have you also written some tests? I cannot find these.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| if self._cqc.pend_messages: | ||
| # If we are inside a TP_MIX, then insert the CQC Type header before the command header |
There was a problem hiding this comment.
It would be good to put these things in functions since they can then be reused in _two_qubit_gate, measurereset etc
There was a problem hiding this comment.
Do you mean only these two lines?
if self._cqc._inside_cqc_mix:
self._cqc._pend_type_header(CQCType.COMMAND, CQCCmdHeader.HDR_LENGTH + CQCAssignHeader.HDR_LENGTH)
There was a problem hiding this comment.
There is also this:
# Build command header and rotation sub headercommand_header=CQCCmdHeader()
command_header.setVals(self._qID, command, notify, block)and this
# Pend headersself._cqc._pend_header(command_header)
self._cqc._pend_header(rot_sub_header)copied code
VictorPrins
commented
Oct 21, 2019
I have processed and responded to all comments. As we agreed in the email exchange, we will write tests once a test framework has been created in the CQC-Python repo. I will write some examples later this week. |
AckslD
commented
Oct 23, 2019
@VictorPrins If I try to run the example https://github.com/SoftwareQuTech/CQC-Python/tree/master/examples/pythonLib/wstate I get a the error |
VictorPrins
commented
Oct 23, 2019
The source of the error is that arbitrary rotations are not implemented in the quantum engine: see this line. This error is always raised if the rotation gates are invoked. The "Sequence not supported" line is misleading; sequences don't have anything to do with this error. The error is not due to my changes, because the same error is raised if you execute the example in the master branch. |
AckslD
commented
Oct 24, 2019
@VictorPrins Ah right! Sorry my bad :) |
No description provided.