ApplyDeltaParity operation
Warning
This documentation refers to the Classic QDK, which has been replaced by the Modern QDK.
Please see https://aka.ms/qdk.api for the API documentation for the Modern QDK.
Namespace: Microsoft.Quantum.Research.Chemistry
Package: Microsoft.Quantum.Research.Chemistry
Computes difference in parity between a previous PQRS... terms and the next PQRS... term. This difference is computed on a auxiliary qubit.
operation ApplyDeltaParity (prevFermionicTerm : Int[], nextFermionicTerm : Int[], aux : Qubit, qubits : Qubit[]) : Unit is Adj + Ctl
Input
prevFermionicTerm : Int[]
List of indices to previous PQRS... terms.
nextFermionicTerm : Int[]
List of indices to next PQRS... terms.
aux : Qubit
Auxiliary qubit onto which parity computation results are stored.
qubits : Qubit[]
Qubit acted on by all PQRS... terms.
Output : Unit
Remarks
This assumes that indices of P < Q < R < S < ... for both prevPQ and nextPQ.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for