Error length of the array in example code
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.
- ID: be77c442-f221-9bd6-100f-77194c1f3032
- Version Independent ID: 95a28915-a3c7-4b8a-2c5e-d92fd0967b51
- Content: _ComputeJordanWignerBitString function - Q# reference - Microsoft Quantum
- Content Source: api/qsharp/microsoft.quantum.chemistry.jordanwigner._computejordanwignerbitstring.md
- Product: qsharp
- GitHub Login: @ricardo-espinoza
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.
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?
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
Hi @msoeken, I see this is still not fixed and I am happy to submit a PR if it is ok with you
Hi @ihristova11, that would be great!