Documentation

Entanglement Decomposers

Core: Schmidt Decomposition

Core: Continuous Systems

Core: Tensor Network Computations

Core: Wavefunctions

Core: Interpolation

Core: Exceptions

Metrics

Schemas

Quantum States: Harmonic Oscillators

Quantum States: Bipartite States

pyqentangle.quantumstates.bipartite.create_singlet()[source]

Create a two-qubit singlet state tensor.

Returns the bipartite state tensor for the singlet state \(|\Psi^+\rangle = \frac{1}{\sqrt{2}}(|01\rangle + |10\rangle)\), where element [i, j] is the coefficient of \(|ij\rangle\).

Note: the returned tensor is not normalized; multiply by \(1/\sqrt{2}\) to obtain the normalized singlet state.

Returns:

A (2, 2) array representing the singlet state tensor.

Return type:

numpy.ndarray