Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
madcpf committed Oct 30, 2023
1 parent 6e30000 commit 94f9d2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions unitary/examples/quantum_chinese_chess/move_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ def test_jump_excluded_quantum_source_and_target():


def test_jump_basic():
# Source is in quantum state.
board = set_board(["a1"])
world = board.board
alpha.PhasedSplit()(world["a1"], world["a2"], world["a3"])
Jump(MoveVariant.BASIC)(world["a2"], world["d1"])
board_probabilities = get_board_probability_distribution(board, 1000)
assert len(board_probabilities) == 2
Expand Down

0 comments on commit 94f9d2d

Please sign in to comment.