QuantumLibraries icon indicating copy to clipboard operation
QuantumLibraries copied to clipboard

Error length of the array in example code

Open weucode opened this issue 3 years ago • 5 comments

The correct code should be:

let bitString = _ComputeJordanWignerBitString(7, [0,1,2,6]) ;

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

weucode avatar Dec 02 '22 03:12 weucode

Thanks for reporting this issue @weucode. Would you be interested in providing a PR to fix it? I am happy to help if there are questions.

msoeken avatar Dec 04 '22 08:12 msoeken

I am sorry to reply so late. By the way, I am new to this job, so please suggest which repository I should clone and edit. Dose MicrosoftDocs/quantum-api is a proper one?

weucode avatar Dec 11 '22 11:12 weucode

Hi @weucode, no problem. The code is in this repository and you can find it here:

https://github.com/microsoft/QuantumLibraries/blob/6f41efc6fcac82a3b24bf8252859bf640c0f9280/Chemistry/src/Runtime/JordanWigner/JordanWignerClusterOperatorEvolutionSet.qs#L27

msoeken avatar Dec 14 '22 01:12 msoeken

Hi @msoeken, I see this is still not fixed and I am happy to submit a PR if it is ok with you

ihristova11 avatar Mar 15 '23 10:03 ihristova11

Hi @ihristova11, that would be great!

msoeken avatar Mar 15 '23 11:03 msoeken