Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion unitary/alpha/qudit_state_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def qudit_to_qubit_state(
qudit_dimension: int,
num_qudits: int,
qudit_state_vector: np.ndarray,
_pad_value: np.complex_ = 0,
_pad_value: np.complex128 = 0,
) -> np.ndarray:
"""Converts a qudit-space quantum state vector to m-qubit-per-qudit column vector.

Expand Down
2 changes: 1 addition & 1 deletion unitary/alpha/qudit_state_transform_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_qudit_state_and_unitary_transform_equivalence(qudit_dim, num_qudits):
(
3,
2,
np.array([1, 0, 0, 0, 0, 0, 0, 0, 1], dtype=np.complex_),
np.array([1, 0, 0, 0, 0, 0, 0, 0, 1], dtype=np.complex128),
np.array(
[
1,
Expand Down