uid | title | ms.date | ms.topic | qsharp.kind | qsharp.namespace | qsharp.name | qsharp.summary |
---|---|---|---|---|---|---|---|
Microsoft.Quantum.Arithmetic.CopyMostSignificantBit |
CopyMostSignificantBit operation |
7/28/2023 12:00:00 AM |
managed-reference |
operation |
Microsoft.Quantum.Arithmetic |
CopyMostSignificantBit |
Copies the most significant bit of a qubit register `from` representing an unsigned integer into the qubit `target`. |
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.Arithmetic
Package: Microsoft.Quantum.Standard
Copies the most significant bit of a qubit register
from
representing an unsigned integer into the qubit target
.
operation CopyMostSignificantBit (from : Microsoft.Quantum.Arithmetic.LittleEndian, target : Qubit) : Unit is Adj
The unsigned integer from which the highest bit is copied from. the integer is encoded in little-endian format.
The qubit in which the highest bit is being copied. The bit encoding is in computational basis.
- Microsoft.Quantum.Arithmetic.LittleEndian