Click or drag to resize
OperationsBangBang Operator
In F# code, this operator is named !!. Builds a list of Qubits from a wide variety of possible inputs.

Namespace: Microsoft.Research.Liquid
Assembly: Liquid1 (in Liquid1.dll) Version: 1.0.5981.24943 (1.0.*)
Syntax
F#
F# does not support this operator.

Parameters

qs
Type: SystemObject
The value to interpret as a list of Qubits.

Return Value

Type: FSharpListQubit
A list of Qubits
Remarks
The inputs that are interprested by this operator are:
  • A Ket, which is interpreted as the complete list of Qubits in the Ket.
  • A single Qubit, which is interpreted as a single-element list.
  • A two-tuple of Qubits, which is interpreted as a two-element list.
  • A three-tuple of Qubits, which is interpreted as a three-element list.
  • A list of Qubits, which is returned directly.
  • A two-tuple of lists of Qubits, which are concatenated into a single list.
  • A three-tuple of lists of Qubits, which are concatenated into a single list.
  • A list of lists of Qubits, which are concatenated into a single list.
  • A two-tuple of a list of Qubits and a single Qubit, which are concatenated into a single list.
  • A two-tuple of a single Qubit and a list of Qubits, which are concatenated into a single list.
  • A two-tuple of a list of Qubits and an integer, which is interpreted as the single-element list containing the item in the list indexed by the integer.
  • A three-tuple of a list of Qubits and two integers, which is interpreted as the two-element list containing the items in the list indexed by the two integers.
  • A four-tuple of a list of Qubits and three integers, which is interpreted as the three-element list containing the item in the list indexed by the three integers.
  • A two-tuple of a list of Qubits and a list of integers, which is interpreted as the list containing the items in the Qubit list indexed by the elements in the integer list.
See Also