Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Cassandra Granade
    @cgranade
    @allmycode_twitter: Can you share the error messages that you're getting?
    Barry Burd
    @allmycode_twitter
    @cgranade While I was trying to reproduce the error message, the installation started working. My only concern is that I had to use Administrator privs on Windows to execute dotnet iqsharp install. That won't mess anything up, will it?
    @cgrande Oops! "No namespace with the name "Microsoft.Quantum.Intrinsic" exists." Is that possibly because my package versions don't match?
    Barry Burd
    @allmycode_twitter
    @cgrande Both say Microsoft.Quantum.Katas 0.11.2004.2825
    @cgranade (both In[1] and Out[2], that is)
    Barry Burd
    @allmycode_twitter
    @cgranade I successfully added the .Katas package to the notebook, but I get the "No namespace" error when I try to run Task 1.1.
    Cassandra Granade
    @cgranade
    @allmycode_twitter: I'll admit it's a bit hard to diagnose without a bit more detail, sorry. Some screenshots in particular would help provide context. The chat here supports images with ![]() notation, or you can file an issue either at https://github.com/microsoft/iqsharp/ for IQ# issues or https://github.com/microsoft/QuantumKatas/ for kata issues with more detail about the context in which you're encountering these errors. That in turn could help us solve the problem better. That said, in the meantime, installing IQ# as an administrator isn't generally necessary unless your Jupyter installation is locked to Administrator only; in that case, you can always opt for a user-local installation by using dotnet iqsharp install --user instead.
    Barry Burd
    @allmycode_twitter
    @cgranade I'm providing screenshots. including the package error message
    Sarah Kasier
    @crazy4pi314
    So it looks like the versions listed in Out[1]: don't match so you need to make sure the version of the Katas and the installed IQ# are the same
    Cassandra Granade
    @cgranade
    @allmycode_twitter Thanks, that helps a lot! In the first screenshot, you can see that the version of Microsoft.Quantum.Standard is 0.11.2006.403 doesn't match the version of Microsoft.Quantum.Katas, 0.11.2004.2825. It looks like the katas haven't been updated to support the latest version of IQ#, such that I'd recommend using the Binder deployment, or explicitly installing version 0.11.2004.2825 of IQ# locally instead of the latest. You can also file an issue at https://github.com/microsoft/QuantumKatas/issues about the versions of IQ# supported by the katas.
    Mariia Mykhailova
    @tcNickolas_twitter
    @allmycode_twitter @cgranade I'm aware that the Katas have not been updated to the latest QDK release, it's just that I didn't have time this week to get to it :-( If anybody wants to give it a try I'll be happy to review
    Barry Burd
    @allmycode_twitter
    @cgranade @tcNickolas_twitter I'm making progress... package error
    Mariia Mykhailova
    @tcNickolas_twitter
    @allmycode_twitter It's this issue: microsoft/QuantumKatas#261. The reason is the leftover build artifacts from building on a previous version of Q#; once you remove bin and obj folders and restart the notebook, the error should disappear.
    Barry Burd
    @allmycode_twitter
    By the way, I don't want to use Binder because it times out after 10 minutes while I'm researching solutions.
    There aren't any obj or bin folders in the SingleQubitGates folder directory listing
    Barry Burd
    @allmycode_twitter
    There were no subfolders to delete.
    Barry Burd
    @allmycode_twitter
    Problem solved :-) Was looking in the wrong folder for the obj subfolder. Thank you @cgranade and @tcNickolas_twitter .
    vashisth malik
    @VashisthMalik_twitter
    @tcNickolas_twitter @cgranade I am participating in warm up contest . Just new to q# . From where I can get the syntax of language fast?
    Mariia Mykhailova
    @tcNickolas_twitter
    @VashisthMalik_twitter The contest announcement has a lot of starting links, two good resources are https://docs.microsoft.com/quantum and https://github.com/Microsoft/QuantumKatas/, the latter have a lot of practice problems with solutions worked out. Enjoy the contest!
    Harshit Garg
    @githg22_gitlab
    Is anyone else stuck on the increment problem? I think my code is correct but it doesn't satisfy the Adj+Ctl thing because it uses measurement
    Cassandra Granade
    @cgranade
    @githg22_gitlab: Is that one of the contest problems? If so, you should be able to do it without measurement, so that your solution can in principle be used when your input register is in superposition.

    @githg22_gitlab: Taking a hint from the problem statement itself, I'd suggest that the last sentence is especially relevant here.

    "This operation can be implemented using just the X gate and its controlled variants."

    Harshit Garg
    @githg22_gitlab
    @cgranade It's more like I'm using an extra qubit that needs to be reset and that functor wouldn't keep the operation Adj
    And I can't find a way to test it locally through python
    Sagar Mishra
    @achieveordie
    I've got a small question, Can we apply the unwrapping operator on LittleEndian? I don't think we can do that because of the no-clone theorem, I can solve the increment problem with array of qubits, but cannot wrap my mind to do that on LittleEndian. I couldn't find any relevant operation in Microsoft.Quantum.Arithematic to apply X gate on Little Endian either...
    Harshit Garg
    @githg22_gitlab
    Yup you can do that
    Just write !
    Just write register!
    Stupid gitter
    LittleEndian is basically a different name for Qubit[], literally no other difference
    Sagar Mishra
    @achieveordie
    Won't that be qarray = LittleEndian!?
    I mean, I get what you mean, but I still find it a bit uncomfortable without having to use using()
    Also, as a side question, does the changes that we make on the unwrapped array reflected automatically in the user-defined LittleEndian?
    Harshit Garg
    @githg22_gitlab
    I think it does
    So umm
    Cam you give a hint as to how you solved the problem?
    I've been stuck at this for the past 24 hours
    Sagar Mishra
    @achieveordie
    I hope it isn't against the protocol, say you've got N=3. On a paper, write down the values in LittleEndian format from 0 to 7 and then write down the required result, again in LittleEndian format. You'll notice something, one of the qubits will always flip no matter what while the others will flip if a certain condition is satisfied(hence the usage of Controlled X) I hope this will help you.
    Also, I tried using the unwrap operator and I got a compilation error saying the expression can only be applied on user-defined type while LittleEndian is a custom user-defined(Microsoft.Quantum.Arithematic.LittleEndian)
    Harshit Garg
    @githg22_gitlab
    That's weird I could use it in my code
    Its not against the rules btw, in warmup you're free to discuss hints
    Sagar Mishra
    @achieveordie
    what was your syntax?
    like the expression?
    Harshit Garg
    @githg22_gitlab
    (register!)
    Sagar Mishra
    @achieveordie
    And if that is so, did you solve problem C?
    Harshit Garg
    @githg22_gitlab
    Length(register!)
    For example
    Yeah I solved C
    Sagar Mishra
    @achieveordie
    and if I wanted to access some element, how would do that in LittleEndian?
    Any hints?