concurrence

concurrence(state)[source]

Calculate the concurrence.

Parameters

state (np.array) – a quantum state (1x4 array) or a density matrix (4x4 array)

Returns

concurrence.

Return type

float

Raises

Exception – if attempted on more than two qubits.