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

Function func0

python/tests/operator/test_matrix_op.py:558–559  ·  view source on GitHub ↗
(dims)

Source from the content-addressed store, hash-verified

556 # matrix evaluation for custom operators with multiple degrees
557
558 def func0(dims):
559 return np.kron(momentum_matrix(dims[1]), position_matrix(dims[0]))
560
561 def func1(dims):
562 return np.kron(momentum_matrix(dims[1]), number_matrix(dims[0]))

Callers

nothing calls this directly

Calls 2

momentum_matrixFunction · 0.70
position_matrixFunction · 0.70

Tested by

no test coverage detected