uid | title | ms.date | ms.topic | qsharp.kind | qsharp.namespace | qsharp.name | qsharp.summary |
---|---|---|---|---|---|---|---|
Microsoft.Quantum.Canon.ApplyDiagonalUnitary |
ApplyDiagonalUnitary operation |
7/28/2023 12:00:00 AM |
managed-reference |
operation |
Microsoft.Quantum.Canon |
ApplyDiagonalUnitary |
Applies an array of complex phases to numeric basis states of a register of qubits. |
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 complex phases to numeric basis states of a register of qubits.
operation ApplyDiagonalUnitary (coefficients : Double[], qubits : Microsoft.Quantum.Arithmetic.LittleEndian) : Unit is Adj + Ctl
This operation implements a diagonal unitary that applies a complex phase
Array of up to
coefficients
will be padded with elements
- Synthesis of Quantum Logic Circuits Vivek V. Shende, Stephen S. Bullock, Igor L. Markov https://arxiv.org/abs/quant-ph/0406176
- Microsoft.Quantum.Canon.ApproximatelyApplyDiagonalUnitary