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.
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.
QIR API for performing the CCNOT gate with the given qubits.
QIR API for performing the CNOT gate with the given qubits.
QIR API for performing the CNOT gate with the given qubits.
QIR API for performing the CY gate with the given qubits.
QIR API for performing the CZ gate with the given qubits.
QIR API for dumping full internal simulator state.
QIR API for applying an adjoint exponential of a multi-qubit rotation about the given Pauli axes with the given angle and qubits.
QIR API for applying an exponential of a multi-qubit rotation about the given Pauli axes with the given angle and qubits.
QIR API for applying an exponential of a multi-qubit rotation about the given Pauli axes with the given angle and qubits.
QIR API for applying an exponential of a multi-qubit rotation about the given Pauli axes with the given angle and qubits.
QIR API for performing the H gate on the given qubit.
QIR API for performing the multicontrolled H gate with the given qubits.
QIR API that measures a given qubit in the computational basis, returning a runtime managed result value.
QIR API that performs joint measurement of the given qubits in the corresponding Pauli bases, returning the parity as a runtime managed result value.
QIR API for measuring the given qubit and storing the measured value with the given result identifier,
then resetting it in the computational basis.
QIR API for measuring the given qubit in the computation basis and storing the measured value with the given result identifier.
QIR API for applying an adjoint rotation about the given Pauli axis with the given angle and qubit.
QIR API for applying a rotation about the given Pauli axis with the given angle and qubit.
QIR API for applying a controlled rotation about the given Pauli axis with the given angle and qubit.
QIR API for applying an adjoint controlled rotation about the given Pauli axis with the given angle and qubit.
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.
QIR API for resetting the given qubit in the computational basis.
QIR API for applying a Pauli-X rotation with the given angle and qubit.
QIR API for applying a multicontrolled Pauli-X rotation with the given angle and qubit.
QIR API for applying a joint rotation Pauli-Y rotation with the given angle for the two target qubit.
QIR API for applying a Pauli-Y rotation with the given angle and qubit.
QIR API for applying a multicontrolled Pauli-Y rotation with the given angle and qubit.
QIR API for applying a joint rotation Pauli-Y rotation with the given angle for the two target qubit.
QIR API for applying a Pauli-Z rotation with the given angle and qubit.
QIR API for applying a multicontrolled Pauli-Z rotation with the given angle and qubit.
QIR API for applying a joint rotation Pauli-Z rotation with the given angle for the two target qubit.
QIR API for performing the Adjoint S gate on the given qubit.
QIR API for performing the S gate on the given qubit.
QIR API for performing the multicontrolled S gate with the given qubits.
QIR API for performing the multicontrolled Adjoint S gate with the given qubits.
QIR API for applying a SWAP gate to the given qubits.
QIR API for performing the Adjoint T gate on the given qubit.
QIR API for performing the T gate on the given qubit.
QIR API for performing the multicontrolled T gate with the given qubits.
QIR API for performing the multicontrolled Adjoint T gate with the given qubits.
QIR API for performing the X gate on the given qubit.
QIR API for performing the multicontrolled X gate with the given qubits.
QIR API for performing the Y gate on the given qubit.
QIR API for performing the multicontrolled Y gate with the given qubits.
QIR API for performing the Z gate on the given qubit.
QIR API for performing the multicontrolled Z gate with the given qubits.
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.
Initializes the execution environment.
QIR API that allocates the next available qubit in the simulation.
QIR API for allocating the given number of qubits in the simulation, returning them as a runtime managed array.
QIR API for releasing the given qubit from the simulation.
QIR API for releasing the given runtime managed qubit array.
QIR API for getting the string interpretation of a qubit identifier.
QIR API for recording the given result into the program output.
Panics
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.
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.
Rust API for checking internal simulator state and returning true only if the given qubit is in exactly the |0⟩ state.
Errors
Errors
Sets the seed for the pseudo-random number generator used during measurements.