Python objects & constants¶
Enums¶
|
See |
|
|
|
|
|
|
|
|
|
Python functions¶
Library Management¶
Handle Management API¶
|
Initialize the cuStateVec library and create a handle. |
|
Destroy the cuStateVec library handle. |
|
Get the default workspace size defined by cuStateVec. |
|
Set the workspace to be used by cuStateVec. |
CUDA Stream Management API¶
|
Set the stream to be used by cuStateVec. |
|
Get the stream used by cuStateVec. |
Logger API¶
|
Set the logger callback along with arguments. |
|
Set the filename for the logger to write to. |
|
Set the logging level. |
|
Set the logging mask. |
Disable the logger. |
Memory Management API¶
|
Set the device memory handler for cuTensorNet. |
|
Get the device memory handler for cuTensorNet. |
Versioning API¶
|
Get the version information of cuStateVec. |
Get the version of cuStateVec. |
Gate Application¶
General Matrices¶
Computes the required workspace size for |
|
|
Apply the specified gate matrix. |
Pauli Matrices¶
|
Apply the exponential of a multi-qubit Pauli operator. |
Generalized Permutation Matrices¶
|
Computes the required workspace size for |
Apply a generalized permutation matrix. |
Measurement¶
Measurement on Z-bases¶
|
Calculates the sum of squared absolute values on a given Z product basis. |
|
Collapse the statevector on the given Z product basis. |
|
Performs measurement on the given Z-product basis. |
Batched Single Qubit Measurement¶
|
Calculates the sum of squared absolute values for a given set of index bits. |
|
Collapse the statevector to the state specified by the given bit string. |
|
Performs measurement of arbitrary number of single qubits. |
|
Performs measurement (on a partial statevector) of arbitrary number of single qubits. |
Expectation¶
Expectation via a Matrix¶
Computes the required workspace size for |
|
|
Compute the expectation value of the given matrix with respect to the statevector. |
Expectation on Pauli Basis¶
Compute expectation values for multiple multi-qubit Pauli strings. |
Sampling¶
|
Create a sampler descriptor. |
|
Destroy the sampler descriptor. |
|
Preprocess the statevector to prepare for sampling. |
|
Sample bit strings from the statevector. |
|
Get the squared norm of the statevetor. |
|
Apply the partial norm and norm to the statevector. |
Accessor¶
|
Create accessor to copy elements between the statevector and external buffers. |
|
Create accessor to copy elements from the statevector to external buffers. |
|
Destroy the accessor descriptor. |
Set the external workspace to the accessor. |
|
|
Copy elements from the statevector to an external buffer. |
|
Copy elements from an external buffer to the statevector. |
Qubit reordering¶
|
Swap index bits and reorder statevector elements on the device. |
|
Swap index bits and reorder statevector elements on multiple devices. |
Test gate matrix type¶
Computes the required workspace size for |
|
|
Test the deviation of a given matrix from a certain matrix type (Hermitian or unitary). |