Ket Constructor (FSharpOptionInt32, FSharpOptionBit) |
Creates a populated Ket vector.
Namespace: Microsoft.Research.LiquidAssembly: Liquid1 (in Liquid1.dll) Version: 1.0.5981.24943 (1.0.*)
Syntax new :
count : FSharpOption<int> *
init : FSharpOption<Bit> -> Ket
Parameters
- count
- Type: Microsoft.FSharp.CoreFSharpOptionInt32
Number of qubits to allocate. - init
- Type: Microsoft.FSharp.CoreFSharpOptionBit
An optional initial value for the qubits, either Zero or One.
The default is to initialize all qubits to Zero.
See Also