Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Update example of function _ComputeJordanWignerBitString #664

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace Microsoft.Quantum.Chemistry.JordanWigner {
/// Bitstring `Bool[]` that is `true` where a `PauliZ` should be applied.
///
/// # Example
/// let bitString = _ComputeJordanWignerBitString(6, [0,1,2,6]) ;
/// let bitString = _ComputeJordanWignerBitString(7, [0,1,2,6]) ;
/// // bitString is [false, false, false ,true, true, true, false].
function _ComputeJordanWignerBitString(nFermions: Int, idxFermions: Int[]) : Bool[] {
if Length(idxFermions) % 2 != 0 {
Expand Down