Export to CUDA-Q

CircuitInstructions


source

CircuitInstruction

 CircuitInstruction (name:str, control_nodes:Sequence[int],
                     target_nodes:Sequence[int], params:Sequence[float])

source

CircuitInstructions

 CircuitInstructions (tensor_shape:torch.Size)

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

CircuitsCudaqBackend


source

CircuitsCudaqBackend

 CircuitsCudaqBackend ()

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

Decode


source

tensor_to_instructions

 tensor_to_instructions (tensor:torch.Tensor, vocabulary_inverse:dict,
                         params_tensor:Optional[torch.Tensor]=None,
                         params_4pi_normalization:bool=True,
                         sign_labels:dict={'control_nodes': -1,
                         'target_nodes': 1})

Convert a given torch.Tensor to CircuitInstructions.


source

genqc_to_cudaq

 genqc_to_cudaq (tensor:torch.Tensor, vocabulary_inverse:dict)

Convert given torch.Tensor to a cudaq.kernel.

Back to top