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

Function position_matrix

python/tests/operator/op_utils.py:67–68  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

65
66
67def position_matrix(size):
68 return 0.5 * (create_matrix(size) + annihilate_matrix(size))
69
70
71def momentum_matrix(size):

Callers 8

test_definitionsFunction · 0.70
test_propertiesFunction · 0.70
test_arithmeticsFunction · 0.70
func0Function · 0.70
test_custom_operatorsFunction · 0.70
test_definitionsFunction · 0.70
test_propertiesFunction · 0.70
test_arithmeticsFunction · 0.70

Calls 2

create_matrixFunction · 0.70
annihilate_matrixFunction · 0.70

Tested by 8

test_definitionsFunction · 0.56
test_propertiesFunction · 0.56
test_arithmeticsFunction · 0.56
func0Function · 0.56
test_custom_operatorsFunction · 0.56
test_definitionsFunction · 0.56
test_propertiesFunction · 0.56
test_arithmeticsFunction · 0.56