MultiplexOperations 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.Canon
Package: Microsoft.Quantum.Standard
Applies an array of operations controlled by an array of number states.
That is, applies Multiply-controlled unitary operation $U$ that applies a unitary $V_j$ when controlled by $n$-qubit number state $\ket{j}$.
$U = \sum^{2^n-1}_{j=0}\ket{j}\bra{j}\otimes V_j$.
operation MultiplexOperations<'T> (unitaries : ('T => Unit is Adj + Ctl)[], index : Microsoft.Quantum.Arithmetic.LittleEndian, target : 'T) : Unit is Adj + Ctl
Input
unitaries : 'T => Unit is Adj + Ctl[]
Array of up to $2^n$ unitary operations. The $j$th operation is indexed by the number state $\ket{j}$ encoded in little-endian format.
index : LittleEndian
$n$-qubit control register that encodes number states $\ket{j}$ in little-endian format.
target : 'T
Generic qubit register that $V_j$ acts on.
Output : Unit
Type Parameters
'T
References
- Encoding Electronic Spectra in Quantum Circuits with Linear T Complexity Ryan Babbush, Craig Gidney, Dominic W. Berry, Nathan Wiebe, Jarrod McClean, Alexandru Paler, Austin Fowler, Hartmut Neven https://arxiv.org/abs/1805.03662
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