MCPcopy Create free account
hub / github.com/NVIDIA/cuda-quantum / kernel_observable_variadic

Function kernel_observable_variadic

python/tests/mlir/qec_ops.py:100–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98
99 @cudaq.kernel
100 def kernel_observable_variadic():
101 q0 = cudaq.qubit()
102 q1 = cudaq.qubit()
103 h0 = mz(q0)
104 h1 = mz(q1)
105 cudaq.logical_observable(h0, h1)
106
107 print(kernel_observable_variadic)
108

Callers

nothing calls this directly

Calls 2

mzFunction · 0.50
logical_observableMethod · 0.45

Tested by

no test coverage detected