Closed rsehgal closed 4 years ago
Wrong name was appearing because on creation of custom gate, the gate and name of parent div was not changing. Kindly check for all attribute of parent div and notify. I mean what should be num_bits, target bit etc.
That's what you have to set all the attributes of parent div.
Any update on this ??
Did we stuck somewhere ?? Need any discussion ??
This is very much required functionality.
For the time lets stick to only those controlled gate which are provided in the above list. ie. CNOT, TOFFOLI, FREDKIN, CRX, CRY, CRZ, CSIGN. Will allow user to allow creation of only these control gates on arbitrary lines
Can we discuss it today .
On Fri, Jun 5, 2020, 12:08 rsehgal notifications@github.com wrote:
For the time lets stick to only those controlled gate which are provided in the above list. ie. CNOT, TOFFOLI, FREDKIN, CRX, CRY, CRZ, CSIGN. Will allow user to allow creation of only these control gates on arbitrary lines
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/rsehgal/barcQ/issues/40#issuecomment-639289235, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHYHONWJMZ4FI3U7GN6IXWTRVCHIFANCNFSM4NL2EI7A .
Thanks for the wonderful work. I think you missed the following test case for the TOFFOLI gate
Currently its not allowing me to create a TOFFOLI gate with this configuration , getting alert message.
May be you would like to have a look.
Good Job
There is a missing call for GenerateCode() function when we create the UserDefined Control gates. Please add a call to this function in the end of DisplayDivIds() function defined in userdefinedcontrolgates.js.
This is required to generate the QuTiP code in real time with correct gate name.
Corrected
Great, I think its ready to go.
Create the pull request.
Can you please clarify, if branch bharti/issue39update and bharti/issue40 corresponds to same work If yes, then which branch should we keep.
If there is any redundant branch, i would request your to delete that.
Create a pull request, so that we can merge this to master
bharti/issue39update correspond to issue 40 work . By mistake the name is given wrong. creating pull request.
Thanks, Shall i delete the branch bharti/issue40
Closing the issue because the corresponding work is done in branch bharti/issue39update, and is already merged to master
When we create the user defined gates, it assign wrong name to the gates as can be seen in the JSON produced. Currently it just assign the name of gate which is at the top, which is wrong.
Ideally it should assign correct gate name which should corresponds to the gates available in QuTiP, Various gate available in QuTip are as follows,
This needs to be fixed, otherwise the backend code will break if user introduce user defined gate in the circuit