Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
67
def
position_matrix(size):
68
return
0.5 * (create_matrix(size) + annihilate_matrix(size))
69
70
71
def
momentum_matrix(size):
Callers
8
test_definitions
Function · 0.70
test_properties
Function · 0.70
test_arithmetics
Function · 0.70
func0
Function · 0.70
test_custom_operators
Function · 0.70
test_definitions
Function · 0.70
test_properties
Function · 0.70
test_arithmetics
Function · 0.70
Calls
2
create_matrix
Function · 0.70
annihilate_matrix
Function · 0.70
Tested by
8
test_definitions
Function · 0.56
test_properties
Function · 0.56
test_arithmetics
Function · 0.56
func0
Function · 0.56
test_custom_operators
Function · 0.56
test_definitions
Function · 0.56
test_properties
Function · 0.56
test_arithmetics
Function · 0.56