Applies a function to each Qubit in the state vector, returning the list of
qubit IDs for which the function returned true.
This method is usually used to apply noise to the state.
Namespace: Microsoft.Research.LiquidAssembly: Liquid1 (in Liquid1.dll) Version: 1.0.5981.24943 (1.0.*)
Syntax member Decohere :
decohere : FSharpFunc<Qubit, bool> -> FSharpList<int>
Parameters
- decohere
- Type: Microsoft.FSharp.CoreFSharpFuncQubit, Boolean
The function to apply to each qubit.
This function is allowed to modify the state of the qubit.
Return Value
Type:
FSharpListInt32The list of qubits where the function returned true
See Also