Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-quantum
/ functions
Functions
11,928 in github.com/NVIDIA/cuda-quantum
⨍
Functions
11,928
◇
Types & classes
2,432
↳
Endpoints
84
↓ 5 callers
Function
commonInvokeWithRotationsControlsTargets
This is the generalized version of invoke that does not use a va_list argument. It provides a general interface to allow invoking a general quantum op
runtime/nvqir/NVQIR.cpp:1271
↓ 5 callers
Function
compileAndDump
Compile \p quake and print the resulting MLIR module to stdout.
cudaq/test/CompileTarget/test_compile_target.cpp:30
↓ 5 callers
Function
compileAndDump
Compile \p quake and print the resulting MLIR module to stdout.
runtime/test/test_compile_target.cpp:30
↓ 5 callers
Function
complex_vec_definition_imag
(i: int)
python/tests/kernel/test_kernel_complex.py:91
↓ 5 callers
Function
complex_vec_definition_real
(i: int)
python/tests/kernel/test_kernel_complex.py:83
↓ 5 callers
Method
computeAllPairShortestPaths
Compute the shortest path between every qubit. This assumes that there exists at least one path between every source and destination pair. I.e. the gr
cudaq/include/cudaq/Support/Device.h:220
↓ 5 callers
Function
computeTotalTrajectories
@brief Compute total trajectory space with overflow protection Calculates the `combinatoric` product of operator counts across all noise points. For
runtime/cudaq/ptsbe/PTSSamplingStrategy.h:51
↓ 5 callers
Function
containsControlTypes
@brief Returns true if \p op contains any `ControlType` operands.
cudaq/lib/Optimizer/Transforms/DecompositionPatterns.cpp:57
↓ 5 callers
Method
contractAllocsPass
If a wire's first and last use inside a block is in an `if`, move the alloc/de-alloc into both the then and else blocks (separately) of the `if`, whic
cudaq/lib/Optimizer/Transforms/DependencyAnalysis.cpp:584
↓ 5 callers
Method
convert
runtime/common/RecordLogParser.h:66
↓ 5 callers
Function
convertCudaToMpiDataType
Convert cutensornet CUDA datatype enum
runtime/nvqir/cutensornet/mpi_support.cpp:124
↓ 5 callers
Method
create
cudaq/lib/Optimizer/Transforms/DecompositionPatterns.cpp:129
↓ 5 callers
Method
createForLoop
(self, argTypes, bodyBuilder, inputs,
python/cudaq/kernel/ast_bridge.py:1356
↓ 5 callers
Function
createGlobalCString
cudaq/lib/Optimizer/CodeGen/ConvertToQIRAPI.cpp:91
↓ 5 callers
Method
createInvariantForLoop
Create an invariant loop using the CC dialect.
python/cudaq/kernel/ast_bridge.py:1421
↓ 5 callers
Method
createName
Returns a new name by combining `prefix` and the number of values in scope
cudaq/include/cudaq/Optimizer/CodeGen/Emitter.h:60
↓ 5 callers
Function
cudaq_dispatcher_set_function_table
realtime/lib/daemon/dispatcher/cudaq_realtime_api.cpp:145
↓ 5 callers
Function
cudaq_dispatcher_set_ringbuffer
realtime/lib/daemon/dispatcher/cudaq_realtime_api.cpp:136
↓ 5 callers
Method
deallocateQubits
runtime/nvqir/CircuitSimulator.h:1069
↓ 5 callers
Function
dem_from_kernel
Generate a detector error model (DEM) from a CUDA-Q kernel. Runs `kernel` under the internal `"dem"` execution context, captures the recorded
python/cudaq/runtime/dem.py:25
↓ 5 callers
Function
distributeComputations
@brief Distribute the expectation value computations among the available platform QPUs. The `asyncLauncher` functor takes as input the QPU index and t
runtime/cudaq/algorithms/observe.h:160
↓ 5 callers
Function
draw
The CUDA-Q specification overloads draw. To meet that, this function uses parameter type checking. The two overloads for `cudaq.draw` are:
python/cudaq/runtime/draw.py:29
↓ 5 callers
Function
elimdim_shrink
modify v to "shrunk" version, with dimensions for lb[i] == ub[i] elim'ed */
runtime/cudaq/algorithms/optimizers/nlopt/nlopt-src/src/api/optimize.c:125
↓ 5 callers
Function
encodeBase64
runtime/cudaq/platform/default/rest/helpers/scaleway/qio/Base64.cpp:14
↓ 5 callers
Method
end
runtime/cudaq/utils/cudaq_utils.h:91
↓ 5 callers
Function
envOrNull
unittests/device_call/CpuRoceChannelTester.cpp:80
↓ 5 callers
Function
escape
tpls/json/single_include/nlohmann/json.hpp:3117
↓ 5 callers
Method
fermionic_swap
Add Fermionic SWAP rotation kernel (phi angle as a QuakeValue) to the kernel builder object.
python/cudaq/kernel/kernel_builder.py:987
↓ 5 callers
Function
filterArgs
cudaq/lib/Optimizer/CodeGen/ConvertToQIRAPI.cpp:62
↓ 5 callers
Function
finalizeRuntime
unittests/device_call/DeviceCallDispatchTester.cpp:219
↓ 5 callers
Function
flushLogs
runtime/logger/logger.cpp:140
↓ 5 callers
Method
genVectorOfConstants
cudaq/lib/Optimizer/Builder/Intrinsics.cpp:856
↓ 5 callers
Function
ger
runtime/cudaq/algorithms/optimizers/nlopt/nlopt-src/src/algs/stogo/linalg.cc:193
↓ 5 callers
Method
getConstantFloat
Create a constant float operation and return its MLIR result Value. Takes as input the concrete float value.
python/cudaq/kernel/kernel_builder.py:364
↓ 5 callers
Function
getDefaultPythonCompileTarget
runtime/cudaq/platform/quantum_platform.cpp:124
↓ 5 callers
Method
getFirstUseOfQID
Returns the first use of the virtual wire \p qid, or nullptr if \p qid is unused in the graph. TODO: could make this a little safer by having a separa
cudaq/lib/Optimizer/Transforms/DependencyAnalysis.cpp:1322
↓ 5 callers
Method
getFloatType
Return an MLIR float type (single or double precision).
python/cudaq/kernel/kernel_builder.py:349
↓ 5 callers
Method
getKey
runtime/internal/compiler/JIT.cpp:303
↓ 5 callers
Function
getLinearExpr
TODO: consider caching the results.
cudaq/lib/Optimizer/Transforms/LoopAnalysis.cpp:126
↓ 5 callers
Method
getNumNodes
cudaq/include/cudaq/ADT/GraphCSR.h:58
↓ 5 callers
Function
getResourceCounterSimulator
runtime/nvqir/resourcecounter/ResourceCounter.cpp:19
↓ 5 callers
Function
getReturnType
Get the return type of a kernel FuncOp. Returns a null Type if the kernel returns void or has more than one result (unsupported).
cudaq/include/cudaq/Optimizer/Builder/Runtime.h:28
↓ 5 callers
Method
getTensor
@brief Return the tensor at the given index. Throws for an invalid tensor index.
runtime/nvqir/custatevec/CuStateVecState.h:225
↓ 5 callers
Function
getTuple
(arg: cudaq.qview)
python/tests/mlir/ast_structs_and_tuples.py:152
↓ 5 callers
Method
get_channel
runtime/common/NoiseModel.h:514
↓ 5 callers
Method
get_character
std::istream/std::streambuf use std::char_traits<char>::to_int_type, to ensure that std::char_traits<char>::eof() and the character 0xFF do not end up
tpls/json/single_include/nlohmann/json.hpp:6574
↓ 5 callers
Method
get_spin
runtime/common/ObserveResult.h:111
↓ 5 callers
Function
get_uccsd_excitations
@brief Given the number of electrons and qubits that make up the system, return the single and double excitation indices.
runtime/cudaq/domains/chemistry/uccsd.h:31
↓ 5 callers
Function
hasCharacteristic
cudaq/include/cudaq/Optimizer/Dialect/Characteristics.h:27
↓ 5 callers
Method
hasTerminator
Return True if the given Block has a Terminator operation.
python/cudaq/kernel/ast_bridge.py:804
↓ 5 callers
Function
hashCombine
Referred from `runtime/cudaq/operators/helpers.cpp`
runtime/cudaq/ptsbe/TrajectoryDeduplication.cpp:21
↓ 5 callers
Method
idFromValue
cudaq/lib/Optimizer/Transforms/RegToMem.cpp:68
↓ 5 callers
Method
initialize
runtime/cudaq/distributed/mpi_plugin.cpp:58
↓ 5 callers
Function
isCNOT
AXIS-SPECIFIC: could allow controlled y and z here
cudaq/lib/Optimizer/Transforms/PhaseFolding.cpp:32
↓ 5 callers
Method
isEmpty
Returns true if and only if there are no remaining stack frames.
python/cudaq/kernel/ast_bridge.py:337
↓ 5 callers
Function
isQuakeOperation
Is \p op in the Quake dialect?
cudaq/include/cudaq/Optimizer/Dialect/Quake/QuakeOps.h:70
↓ 5 callers
Function
isQuakeType
\returns true if \p `ty` is a Quake type.
cudaq/include/cudaq/Optimizer/Dialect/Quake/QuakeTypes.h:33
↓ 5 callers
Method
isQuantumType
Return True if the given type is quantum (is a `VeqType` or `RefType`). Return False otherwise.
python/cudaq/kernel/ast_bridge.py:480
↓ 5 callers
Method
isRoot
Returns true if \p this is a graph root (has no successors, e.g., a wire de-alloc)
cudaq/lib/Optimizer/Transforms/DependencyAnalysis.cpp:367
↓ 5 callers
Function
isX86_64
cudaq/lib/Frontend/nvqpp/ASTBridge.cpp:505
↓ 5 callers
Method
is_begin
return whether the iterator can be dereferenced
tpls/json/single_include/nlohmann/json.hpp:13452
↓ 5 callers
Function
isa_dynamic_kernel
Return True if and only if object is an instance of PyKernel.
python/cudaq/kernel/kernel_builder.py:1931
↓ 5 callers
Method
launch_args_required
This is a deeper query on the quake module. The quake module may have been specialized such that none of the arguments are, in fact,
python/cudaq/kernel/kernel_decorator.py:613
↓ 5 callers
Function
make_bell_builder
()
python/tests/builder/test_translate.py:15
↓ 5 callers
Function
minus
runtime/cudaq/operators/spin_op.cpp:272
↓ 5 callers
Function
mlirTypeToPyType
(argType)
python/cudaq/kernel/utils.py:767
↓ 5 callers
Method
name
@brief Returns the name of the server helper.
runtime/common/BraketServerHelper.h:28
↓ 5 callers
Function
nlopt_add_inequality_mconstraint
runtime/cudaq/algorithms/optimizers/nlopt/nlopt-src/src/api/options.c:556
↓ 5 callers
Function
nlopt_init_genrand
initializes mt[N] with a seed */
runtime/cudaq/algorithms/optimizers/nlopt/nlopt-src/src/util/mt19937ar.c:80
↓ 5 callers
Function
nlopt_optimize
runtime/cudaq/algorithms/optimizers/nlopt/nlopt-src/src/api/optimize.c:483
↓ 5 callers
Function
nlopt_rb_tree_find
runtime/cudaq/algorithms/optimizers/nlopt/nlopt-src/src/util/redblack.c:223
↓ 5 callers
Function
nlopt_rb_tree_init
runtime/cudaq/algorithms/optimizers/nlopt/nlopt-src/src/util/redblack.c:36
↓ 5 callers
Function
nlopt_rb_tree_max
runtime/cudaq/algorithms/optimizers/nlopt/nlopt-src/src/util/redblack.c:313
↓ 5 callers
Function
nlopt_rb_tree_min
runtime/cudaq/algorithms/optimizers/nlopt/nlopt-src/src/util/redblack.c:305
↓ 5 callers
Function
nlopt_rb_tree_pred
runtime/cudaq/algorithms/optimizers/nlopt/nlopt-src/src/util/redblack.c:340
↓ 5 callers
Function
nlopt_remove_equality_constraints
runtime/cudaq/algorithms/optimizers/nlopt/nlopt-src/src/api/options.c:596
↓ 5 callers
Function
nlopt_remove_inequality_constraints
runtime/cudaq/algorithms/optimizers/nlopt/nlopt-src/src/api/options.c:485
↓ 5 callers
Function
nlopt_set_munge
runtime/cudaq/algorithms/optimizers/nlopt/nlopt-src/src/api/options.c:955
↓ 5 callers
Function
openvec
targettests/Kernel/signature-2.cpp:21
↓ 5 callers
Method
outer
()
python/tests/kernel/test_deferred_compilation.py:404
↓ 5 callers
Method
parse
! @brief public parser interface @param[in] strict whether to expect the last token to be EOF @param[in,out] result parsed JSON val
tpls/json/single_include/nlohmann/json.hpp:12951
↓ 5 callers
Method
performAnalysis
Recursively schedules nodes and performs lifetime analysis to allocate physical qubits for virtual wires, working inside out. For `IfDependencyNode`s,
cudaq/lib/Optimizer/Transforms/DependencyAnalysis.cpp:610
↓ 5 callers
Function
permute_matrix
runtime/cudaq/operators/helpers.cpp:121
↓ 5 callers
Method
power
Calculate the power of a given matrix, `powers` times.
runtime/cudaq/operators/matrix.cpp:369
↓ 5 callers
Function
printCounts
targettests/execution/qvector_init_from_state_builder.cpp:19
↓ 5 callers
Function
printCounts
targettests/execution/qvector_init_from_state_c_func.cpp:27
↓ 5 callers
Function
printCounts
targettests/execution/qvector_init_from_state.cpp:31
↓ 5 callers
Function
product_op
@brief Default constructor for the product_op class.
runtime/cudaq/operators.h:1079
↓ 5 callers
Function
recover_value_of_or_none
Recover the Python value of the symbol `name` from the enclosing context. The enclosing context is the context in which the `PyKernelDecorato
python/cudaq/kernel/utils.py:181
↓ 5 callers
Function
registerExtraPayloadProvider
runtime/common/ExtraPayloadProvider.cpp:19
↓ 5 callers
Method
removeQID
Removes \p qid from the metadata for this graph
cudaq/lib/Optimizer/Transforms/DependencyAnalysis.cpp:1660
↓ 5 callers
Method
reorder
runtime/common/SampleResult.cpp:488
↓ 5 callers
Method
replaceLeafAndRoot
Simultaneously replaces the leaf and root nodes for \p qid, or adds them if \p qid was not present before. The operations are separate, but doing them
cudaq/lib/Optimizer/Transforms/DependencyAnalysis.cpp:1642
↓ 5 callers
Function
rotate_left
runtime/cudaq/algorithms/optimizers/nlopt/nlopt-src/src/util/redblack.c:69
↓ 5 callers
Function
rotate_right
runtime/cudaq/algorithms/optimizers/nlopt/nlopt-src/src/util/redblack.c:87
↓ 5 callers
Function
runSamplingAsync
runtime/cudaq/algorithms/sample.h:200
↓ 5 callers
Function
runSamplingPTSBE
runtime/cudaq/ptsbe/PTSBESample.h:176
↓ 5 callers
Function
scale
runtime/common/NoiseModel.h:54
↓ 5 callers
Function
shouldExpand
This code intends to simulate the X86_64ABIInfo::classify() function. That function tries to simulate GCC argument passing conventions. classify() als
cudaq/lib/Optimizer/Builder/Factory.cpp:452
↓ 5 callers
Method
supports_compilation
Whether the kernel can be compiled for the current target.
python/cudaq/kernel/kernel_decorator.py:260
← previous
next →
901–1,000 of 11,928, ranked by callers