Modules§
- arrays
- bigints
- callables
- exp
- legacy
- legacy_
output - math
- output_
recording - range_
support - result_
bool - strings
- tuples
Structs§
- Callable
- Output
Recorder - Holds output messages from calls to the QIR output recording functions and message calls.
- QirArray
- Range
Enums§
Constants§
Functions§
- __
quantum__ qis__ arccos__ body - __
quantum__ qis__ arcsin__ body - __
quantum__ qis__ arctan2__ body - __
quantum__ qis__ arctan__ body - __
quantum__ ⚠qis__ assertmeasurementprobability__ body - QIR API for checking internal simulator state and verifying the probability of the given parity measurement result for the given qubits in the given Pauli bases is equal to the expected probability, within the given tolerance.
- __
quantum__ ⚠qis__ assertmeasurementprobability__ ctl - QIR API for checking internal simulator state and verifying the probability of the given parity measurement result for the given qubits in the given Pauli bases is equal to the expected probability, within the given tolerance. Note that control qubits are ignored.
- __
quantum__ qis__ barrier__ body - QIR API for the barrier operation. This is a no-op in simulation.
- __
quantum__ qis__ ccx__ body - QIR API for performing the CCNOT gate with the given qubits.
- __
quantum__ qis__ cnot__ body - QIR API for performing the CNOT gate with the given qubits.
- __
quantum__ qis__ cos__ body - __
quantum__ qis__ cosh__ body - __
quantum__ qis__ cx__ body - QIR API for performing the CNOT gate with the given qubits.
- __
quantum__ qis__ cy__ body - QIR API for performing the CY gate with the given qubits.
- __
quantum__ qis__ cz__ body - QIR API for performing the CZ gate with the given qubits.
- __
quantum__ qis__ drawrandomdouble__ body - __
quantum__ qis__ drawrandomint__ body - __
quantum__ qis__ dumpmachine__ body - QIR API for dumping full internal simulator state.
- __
quantum__ ⚠qis__ exp__ adj - QIR API for applying an adjoint exponential of a multi-qubit rotation about the given Pauli axes with the given angle and qubits.
- __
quantum__ ⚠qis__ exp__ body - QIR API for applying an exponential of a multi-qubit rotation about the given Pauli axes with the given angle and qubits.
- __
quantum__ ⚠qis__ exp__ ctl - QIR API for applying an exponential of a multi-qubit rotation about the given Pauli axes with the given angle and qubits.
- __
quantum__ ⚠qis__ exp__ ctladj - QIR API for applying an exponential of a multi-qubit rotation about the given Pauli axes with the given angle and qubits.
- __
quantum__ qis__ h__ body - QIR API for performing the H gate on the given qubit.
- __
quantum__ ⚠qis__ h__ ctl - QIR API for performing the multicontrolled H gate with the given qubits.
- __
quantum__ qis__ ieeeremainder__ body - __
quantum__ qis__ infinity__ body - __
quantum__ qis__ isinf__ body - __
quantum__ qis__ isnan__ body - __
quantum__ qis__ isnegativeinfinity__ body - __
quantum__ qis__ log__ body - __
quantum__ qis__ m__ body - QIR API that measures a given qubit in the computational basis, returning a runtime managed result value.
- __
quantum__ ⚠qis__ measure__ body - QIR API that performs joint measurement of the given qubits in the corresponding Pauli bases, returning the parity as a runtime managed result value.
- __
quantum__ qis__ mresetz__ body - QIR API for measuring the given qubit and storing the measured value with the given result identifier, then resetting it in the computational basis.
- __
quantum__ qis__ mz__ body - QIR API for measuring the given qubit in the computation basis and storing the measured value with the given result identifier.
- __
quantum__ qis__ nan__ body - __
quantum__ qis__ r__ adj - QIR API for applying an adjoint rotation about the given Pauli axis with the given angle and qubit.
- __
quantum__ qis__ r__ body - QIR API for applying a rotation about the given Pauli axis with the given angle and qubit.
- __
quantum__ ⚠qis__ r__ ctl - QIR API for applying a controlled rotation about the given Pauli axis with the given angle and qubit.
- __
quantum__ ⚠qis__ r__ ctladj - QIR API for applying an adjoint controlled rotation about the given Pauli axis with the given angle and qubit.
- __
quantum__ qis__ read_ result__ body - QIR API that reads the Boolean value corresponding to the given result identifier, where true indicates a |1⟩ state and false indicates a |0⟩ state.
- __
quantum__ qis__ reset__ body - QIR API for resetting the given qubit in the computational basis.
- __
quantum__ qis__ rx__ body - QIR API for applying a Pauli-X rotation with the given angle and qubit.
- __
quantum__ ⚠qis__ rx__ ctl - QIR API for applying a multicontrolled Pauli-X rotation with the given angle and qubit.
- __
quantum__ qis__ rxx__ body - QIR API for applying a joint rotation Pauli-Y rotation with the given angle for the two target qubit.
- __
quantum__ qis__ ry__ body - QIR API for applying a Pauli-Y rotation with the given angle and qubit.
- __
quantum__ ⚠qis__ ry__ ctl - QIR API for applying a multicontrolled Pauli-Y rotation with the given angle and qubit.
- __
quantum__ qis__ ryy__ body - QIR API for applying a joint rotation Pauli-Y rotation with the given angle for the two target qubit.
- __
quantum__ qis__ rz__ body - QIR API for applying a Pauli-Z rotation with the given angle and qubit.
- __
quantum__ ⚠qis__ rz__ ctl - QIR API for applying a multicontrolled Pauli-Z rotation with the given angle and qubit.
- __
quantum__ qis__ rzz__ body - QIR API for applying a joint rotation Pauli-Z rotation with the given angle for the two target qubit.
- __
quantum__ qis__ s__ adj - QIR API for performing the Adjoint S gate on the given qubit.
- __
quantum__ qis__ s__ body - QIR API for performing the S gate on the given qubit.
- __
quantum__ ⚠qis__ s__ ctl - QIR API for performing the multicontrolled S gate with the given qubits.
- __
quantum__ ⚠qis__ s__ ctladj - QIR API for performing the multicontrolled Adjoint S gate with the given qubits.
- __
quantum__ qis__ sin__ body - __
quantum__ qis__ sinh__ body - __
quantum__ qis__ sqrt__ body - __
quantum__ qis__ swap__ body - QIR API for applying a SWAP gate to the given qubits.
- __
quantum__ qis__ sx__ body - QIR API for performing the SX gate on the given qubit.
- __
quantum__ qis__ t__ adj - QIR API for performing the Adjoint T gate on the given qubit.
- __
quantum__ qis__ t__ body - QIR API for performing the T gate on the given qubit.
- __
quantum__ ⚠qis__ t__ ctl - QIR API for performing the multicontrolled T gate with the given qubits.
- __
quantum__ ⚠qis__ t__ ctladj - QIR API for performing the multicontrolled Adjoint T gate with the given qubits.
- __
quantum__ qis__ tan__ body - __
quantum__ qis__ tanh__ body - __
quantum__ qis__ x__ body - QIR API for performing the X gate on the given qubit.
- __
quantum__ ⚠qis__ x__ ctl - QIR API for performing the multicontrolled X gate with the given qubits.
- __
quantum__ qis__ y__ body - QIR API for performing the Y gate on the given qubit.
- __
quantum__ ⚠qis__ y__ ctl - QIR API for performing the multicontrolled Y gate with the given qubits.
- __
quantum__ qis__ z__ body - QIR API for performing the Z gate on the given qubit.
- __
quantum__ ⚠qis__ z__ ctl - QIR API for performing the multicontrolled Z gate with the given qubits.
- __
quantum__ ⚠rt__ array_ concatenate - __
quantum__ ⚠rt__ array_ copy - __
quantum__ rt__ array_ create_ 1d - __
quantum__ ⚠rt__ array_ get_ element_ ptr_ 1d - __
quantum__ ⚠rt__ array_ get_ size_ 1d - __
quantum__ ⚠rt__ array_ record_ output - Inserts a marker in the generated output that indicates the start of an array and how many array elements it has. The second parameter defines a string label for the array. Depending on the output schema, the label is included in the output or omitted.
- __
quantum__ ⚠rt__ array_ update_ alias_ count - __
quantum__ ⚠rt__ array_ update_ reference_ count - __
quantum__ ⚠rt__ bigint_ add - __
quantum__ ⚠rt__ bigint_ bitand - __
quantum__ ⚠rt__ bigint_ bitnot - __
quantum__ ⚠rt__ bigint_ bitor - __
quantum__ ⚠rt__ bigint_ bitxor - __
quantum__ ⚠rt__ bigint_ create_ array - __
quantum__ rt__ bigint_ create_ i64 - __
quantum__ ⚠rt__ bigint_ divide - __
quantum__ ⚠rt__ bigint_ equal - __
quantum__ ⚠rt__ bigint_ get_ data - __
quantum__ ⚠rt__ bigint_ get_ length - __
quantum__ ⚠rt__ bigint_ greater - __
quantum__ ⚠rt__ bigint_ greater_ eq - __
quantum__ ⚠rt__ bigint_ modulus - __
quantum__ ⚠rt__ bigint_ multiply - __
quantum__ ⚠rt__ bigint_ negate - __
quantum__ ⚠rt__ bigint_ power - __
quantum__ ⚠rt__ bigint_ shiftleft - __
quantum__ ⚠rt__ bigint_ shiftright - __
quantum__ ⚠rt__ bigint_ subtract - __
quantum__ ⚠rt__ bigint_ to_ string - __
quantum__ ⚠rt__ bigint_ update_ reference_ count - __
quantum__ ⚠rt__ bool_ record_ output - __
quantum__ rt__ bool_ to_ string - __
quantum__ ⚠rt__ callable_ copy - __
quantum__ rt__ callable_ create - __
quantum__ ⚠rt__ callable_ invoke - __
quantum__ ⚠rt__ callable_ make_ adjoint - __
quantum__ ⚠rt__ callable_ make_ controlled - __
quantum__ ⚠rt__ callable_ update_ alias_ count - __
quantum__ ⚠rt__ callable_ update_ reference_ count - __
quantum__ ⚠rt__ capture_ update_ alias_ count - __
quantum__ ⚠rt__ capture_ update_ reference_ count - __
quantum__ ⚠rt__ double_ record_ output - __
quantum__ rt__ double_ to_ string - __
quantum__ ⚠rt__ fail - __
quantum__ rt__ initialize - Initializes the execution environment.
- __
quantum__ ⚠rt__ int_ record_ output - __
quantum__ rt__ int_ to_ string - __
quantum__ rt__ memory_ allocate - __
quantum__ ⚠rt__ message - __
quantum__ ⚠rt__ message_ record_ output - __
quantum__ rt__ pauli_ to_ string - __
quantum__ rt__ qubit_ allocate - QIR API that allocates the next available qubit in the simulation.
- __
quantum__ rt__ qubit_ allocate_ array - QIR API for allocating the given number of qubits in the simulation, returning them as a runtime managed array.
- __
quantum__ rt__ qubit_ release - QIR API for releasing the given qubit from the simulation.
- __
quantum__ ⚠rt__ qubit_ release_ array - QIR API for releasing the given runtime managed qubit array.
- __
quantum__ rt__ qubit_ to_ string - QIR API for getting the string interpretation of a qubit identifier.
- __
quantum__ rt__ result_ equal - __
quantum__ rt__ result_ get_ one - __
quantum__ rt__ result_ get_ zero - __
quantum__ ⚠rt__ result_ record_ output - QIR API for recording the given result into the program output.
- __
quantum__ rt__ result_ to_ string - Panics
- __
quantum__ rt__ result_ update_ reference_ count - __
quantum__ ⚠rt__ string_ concatenate - __
quantum__ ⚠rt__ string_ create - __
quantum__ ⚠rt__ string_ equal - __
quantum__ ⚠rt__ string_ get_ data - __
quantum__ ⚠rt__ string_ get_ length - __
quantum__ ⚠rt__ string_ update_ reference_ count - __
quantum__ ⚠rt__ tuple_ copy - __
quantum__ rt__ tuple_ create - __
quantum__ ⚠rt__ tuple_ record_ output - Inserts a marker in the generated output that indicates the start of a tuple and how many tuple elements it has. The second parameter defines a string label for the tuple. Depending on the output schema, the label is included in the output or omitted.
- __
quantum__ ⚠rt__ tuple_ update_ alias_ count - __
quantum__ ⚠rt__ tuple_ update_ reference_ count - capture_
quantum_ state - Rust API for getting a snapshot of current quantum state. The state is a sorted copy of the current sparse state represented by a vector of pairs of indices and complex numbers along with the total number of currently allocated qubits to help in interpreting the state.
- main
- Errors
- quantum__
rt__ ⚠array_ slice_ 1d - quantum__
rt__ range_ to_ string - qubit_
is_ zero - Rust API for checking internal simulator state and returning true only if the given qubit is in exactly the |0⟩ state.
- record_
output ⚠ - Records a value to the output.
- record_
output_ str - Records a string to the output.
- run_
bitcode - Errors
- run_
file - Errors
- set_
rng_ seed - Sets the seed for the pseudo-random number generator used during measurements.