toqito.states.chessboard

Chessboard state represent the state of a chessboard used in quantum chess.

In a quantum chessboard, each chess piece is quantum having a superposition of channel states, giving rise to a unique chess piece.

Module Contents

toqito.states.chessboard.chessboard(mat_params, s_param=None, t_param=None)[source]

Produce a chessboard state [@Bruß_2000_Construction].

Generates the chessboard state defined in [@Bruß_2000_Construction]. Note that, for certain choices of s_param and t_param, this state will not have positive partial transpose, and thus may not be bound entangled.

Examples

The standard chessboard state can be invoked using |toqito⟩ as

`python exec="1" source="above" from toqito.states import chessboard print(chessboard([1, 2, 3, 4, 5, 6], 7, 8)) `

Parameters:
  • mat_params (list[float]) – Parameters of the chessboard state as defined in [@Bruß_2000_Construction].

  • s_param (float | None) – Default is np.conj(mat_params[2]) / np.conj(mat_params[5]).

  • t_param (float | None) – Default is t_param = mat_params[0] * mat_params[3] / mat_params[4].

Returns:

A chessboard state.

Return type:

numpy.ndarray