Operations.JM Method

Liquid Quantum Simulator

OperationsJM Method
Performs a joint parity measurement in the given basis on a list of qubits. The result of the measurement is stored in the Ket's symbol table. The state vector is collapsed according to the result of the measurement.

Namespace: Microsoft.Research.Liquid
Assembly: Liquid1 (in Liquid1.dll) Version: 1.0.5981.24943 (1.0.*)
Syntax
F#
static member JM : 
        tag : string * 
        basis : string * 
        qs : FSharpList<Qubit> -> unit 

Parameters

tag
Type: SystemString
If not empty, the symbol name to store the measurement result under. See Ket.Symbol.
basis
Type: SystemString
The basis to measure in. This may be a string of any length, including empty, made up of X, Y, and Z characters. Each character is used to specify the basis for the corresponding qubit being measured. If there are more qubits than bases specified, then the last basis character is repeated. If this is an empty string, then it is treated as "Z", which performs a joint measurement of all qubits in the computational basis.
qs
Type: Microsoft.FSharp.CollectionsFSharpListQubit
The list of qubits to jointly measure.
See Also