cuStateVec Ex (cuquantum. bindings. custatevecEx)#
Python objects & constants#
Objects#
|
One SVUpdater configuration name and its |
Enums and constants#
|
Status code returned by communicator method functions. |
|
Bitmask that specifies state vector capability. |
|
Enum that specifies the distribution type of state vector. |
|
Specifies a domain that an index bit belongs to. |
|
Specifies the initialization mode of newly added wires. |
|
Communication method for global index bit operations in multi-process distributions. |
|
Specifies the name of state vector property. |
|
Specifies the permutation type. |
|
Resource exposure type. |
|
Specifies the type of matrix. |
|
Specifies the configuration argument type of SVUpdater. |
|
Specifies the method to share device virtual memory among processes. |
|
Memory placement type. |
|
Specifies the scope of synchronization. |
Python functions#
Dictionary API#
|
Destroy dictionary instance. |
Communicator API#
cuquantum. (including MPI_ABI) is accepted by communicator_initialize().
Initialize inter-process communication. |
|
Finalize inter-process communication library. |
|
Get the global size and rank. |
|
Create communicator instance. |
|
|
Destroy communicator instance. |
State vector API#
Configuration and lifecycle#
Create configuration for single device state vector. |
|
Create configuration for multi-device state vector. |
|
Create configuration for multi-process distributed state vector. |
|
Create state vector. |
|
Create multi-process distributed state vector. |
|
|
Destroy state vector instance. |
Properties and state management#
Retrieve state vector properties. |
|
Set the compute precision mode for a state vector instance. |
|
Set the zero state to state vector. |
|
Copy state vector elements to host buffer. |
|
Set complex value array on host to state vector. |
|
Reassign wire ordering to state vector. |
|
Permute index bits and wires of state vector. |
|
Add wires to a state vector. |
Resources and synchronization#
Stage a sub state vector onto device memory. |
|
Expose state vector resources for access. |
|
Get resources from device sub state vector. |
|
Get resources from device sub state vector (read-only view). |
|
Get resources from unstaged sub state vector slice. |
|
|
Get resources from unstaged sub state vector slice (read-only view). |
|
Flush all operations and synchronize. |
Flush all operations and synchronize within the specified scope. |
Simulator API#
|
Calculate abs2sum array for a given set of wires. |
|
Perform qubit measurements. |
|
Sample bit strings from the state vector. |
|
Apply gate matrix. |
|
Apply the exponential of a multi-qubit Pauli operator. |
Compute expectation values for a batch of (multi-qubit) Pauli operators. |
|
|
Compute expectation values for a batch of matrix observables. |
SVUpdater API#
|
Configure an SVUpdater and return its configuration dictionary. |
|
Create SVUpdater. |
|
Destroy SVUpdater instance. |
|
Clear operations queued in SVUpdater. |
Enqueue matrix to SVUpdater. |
|
Enqueue mixed unitary channel. |
|
Enqueue general channel. |
|
Get the max number of required random numbers. |
|
|
Apply queued operations. |