Export to CUDA-Q
CircuitInstructions
CircuitInstruction
CircuitInstruction (name:str, control_nodes:Sequence[int], target_nodes:Sequence[int], params:Sequence[float])
CircuitInstructions
CircuitInstructions (tensor_shape:torch.Size)
Initialize self. See help(type(self)) for accurate signature.
CircuitsCudaqBackend
CircuitsCudaqBackend
CircuitsCudaqBackend ()
Initialize self. See help(type(self)) for accurate signature.
Decode
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
.
genqc_to_cudaq
genqc_to_cudaq (tensor:torch.Tensor, vocabulary_inverse:dict)
Convert given torch.Tensor
to a cudaq.kernel
.