cuPauliProp (cuquantum. bindings. cupauliprop)#
Python objects & constants#
Objects#
Empty-initialize an instance of |
|
Empty-initialize an instance of |
|
Empty-initialize an instance of |
|
NumPy dtype object that encapsulates the pauli term in bindings.cupauliprop. |
|
NumPy dtype object that encapsulates the coefficient truncation params in bindings.cupauliprop. |
|
NumPy dtype object that encapsulates the pauli weight truncation params in bindings.cupauliprop. |
Enums#
|
See |
|
|
|
|
|
|
Empty-initialize an instance of |
|
|
|
|
|
|
Python functions#
Versioning API#
Returns the semantic version number of the cuPauliProp library. |
|
|
Returns the description string for an error code. |
Handle management API#
|
Creates and initializes the library context. |
|
Destroys the library context. |
|
Sets the CUDA stream to be used for library operations. |
Workspace management API#
|
Creates a workspace descriptor. |
Destroys a workspace descriptor. |
|
|
Queries the required workspace buffer size. |
|
Attaches memory to a workspace buffer. |
|
Retrieves a workspace buffer. |
Pauli expansion API#
|
Returns the number of packed integers of cupaulipropPackedIntegerType_t needed to represent the X bits (or equivalently, the Z bits) of a single Pauli string. |
|
Creates a Pauli operator expansion. |
|
Destroys a Pauli operator expansion. |
Gets access to the storage of a Pauli operator expansion. |
|
Gets the number of qubits of a Pauli operator expansion. |
|
Gets the number of terms in the Pauli operator expansion. |
|
Gets the data type of the coefficients in a Pauli operator expansion. |
|
|
Queries whether a Pauli operator expansion is sorted or not. |
Queries whether a Pauli operator expansion is deduplicated. |
|
Creates a non-owning view of a contiguous range of Pauli operator terms inside a Pauli operator expansion. |
|
|
Gets access to a specific term of a Pauli operator expansion. |
Pauli expansion view API#
|
Destroys a Pauli expansion view. |
Returns the number of Pauli terms in a Pauli expansion view. |
|
|
Gets the storage location of a Pauli expansion view (whether its elements are stored on the host or device). |
Gets a specific term of a Pauli expansion view. |
Pauli expansion sorting API#
Prepares a Pauli expansion view for canonical sorting. |
|
Sorts a Pauli expansion view canonically. |
Pauli expansion deduplication API#
Prepares a Pauli expansion view for deduplication. |
|
Deduplicates a Pauli expansion view. |
Pauli expansion truncation API#
Prepares a Pauli expansion view for truncation. |
|
Truncates a Pauli expansion view. |
Pauli expansion trace API#
Prepares a Pauli expansion view for computing the product trace of two Pauli expansion views. |
|
Computes the trace of two Pauli expansion views. |
|
Prepares a Pauli expansion view for tracing with the zero state, i.e. computing |
|
Traces a Pauli expansion view with the zero state, i.e. computes |
Pauli expansion operator application API#
Prepares a Pauli expansion view for quantum operator application. |
|
Computes the application of a quantum operator to a Pauli expansion view. |
|
Populates a Pauli operator expansion from a Pauli expansion view. |
Quantum operator API#
Creates a Clifford gate. |
|
Creates a Pauli rotation gate, |
|
Creates a Pauli noise channel. |
|
|
Queries what kind of gate or channel a quantum operator represents. |
|
Destroys a quantum operator. |