toqito.states.domino

Produce a domino state.

Module Contents

toqito.states.domino.domino(idx)[source]

Produce a domino state [@Bennett_1999_QuantumNonlocality][@Bennett_1999_UPB].

The orthonormal product basis of domino states is given as

[
begin{equation}

begin{aligned} |phi_0rangle = |1rangle |1 rangle, qquad |phi_1rangle = |0 rangle left(frac{|0 rangle + |1 rangle}{sqrt{2}} right), & qquad |phi_2rangle = |0rangle left(frac{|0rangle - |1rangle}{sqrt{2}}right), \ |phi_3rangle = |2rangle left(frac{|0rangle + |1rangle}{sqrt{2}}right), qquad |phi_4rangle = |2rangle left(frac{|0rangle - |1rangle}{sqrt{2}}right), & qquad |phi_5rangle = left(frac{|0rangle + |1rangle}{sqrt{2}}right) |0rangle, \ |phi_6rangle = left(frac{|0rangle - |1rangle}{sqrt{2}}right) |0rangle, qquad |phi_7rangle = left(frac{|0rangle + |1rangle}{sqrt{2}}right) |2rangle, & qquad |phi_8rangle = left(frac{|0rangle - |1rangle}{sqrt{2}}right) |2rangle. end{aligned}

end{equation}

]

Returns one of the following nine domino states depending on the value of idx.

Examples

When idx = 0, this produces the following Domino state

[

|phi_0 rangle = |11 rangle |11 rangle.

]

Using |toqito⟩, we can see that this yields the proper state.

`python exec="1" source="above" from toqito.states import domino print(domino(0)) `

When idx = 3, this produces the following Domino state

[

|phi_3rangle = |2rangle left(frac{|0rangle + |1rangle} {sqrt{2}}right)

]

Using |toqito⟩, we can see that this yields the proper state.

`python exec="1" source="above" from toqito.states import domino print(domino(3)) `

Raises:

ValueError – Invalid value for idx.

Parameters:

idx (int) – A parameter in [0, 1, 2, 3, 4, 5, 6, 7, 8]

Returns:

Domino state of index idx.

Return type:

numpy.ndarray