qilisdk.backends.cuda_backend

Attributes

TBasicGate

BasicGateHandlersMapping

TPauliOperator

PauliOperatorHandlersMapping

Classes

CudaSamplingMethod

Enumeration of available simulation methods for the CUDA backend.

CudaBackend

Backend implementation using CUDA-based simulation.

Module Contents

TBasicGate[fuente]
BasicGateHandlersMapping[fuente]
TPauliOperator[fuente]
PauliOperatorHandlersMapping[fuente]
class CudaSamplingMethod[fuente]

Bases: str, enum.Enum

Enumeration of available simulation methods for the CUDA backend.

Initialize self. See help(type(self)) for accurate signature.

STATE_VECTOR = 'state_vector'[fuente]
TENSOR_NETWORK = 'tensor_network'[fuente]
MATRIX_PRODUCT_STATE = 'matrix_product_state'[fuente]
class CudaBackend(sampling_method: CudaSamplingMethod = CudaSamplingMethod.STATE_VECTOR)[fuente]

Bases: qilisdk.backends.backend.Backend

Backend implementation using CUDA-based simulation.

This backend translates a quantum circuit into a CUDA-compatible kernel and executes it using the cudaq library. It supports different simulation methods including state vector, tensor network, and matrix product state simulations. Gate operations in the circuit are mapped to CUDA operations via dedicated handler functions.

Initialize the CudaBackend.

Parámetros:

sampling_method (CudaSamplingMethod, optional) – The simulation method to use for sampling circuits. Options include STATE_VECTOR, TENSOR_NETWORK, or MATRIX_PRODUCT_STATE. Defaults to STATE_VECTOR.

property sampling_method: CudaSamplingMethod[fuente]

Get the simulation method currently configured for the backend.

Devuelve:

The simulation method to be used for circuit execution.

Tipo del valor devuelto:

SimulationMethod