vqc_lite.toolboxes package
Submodules
vqc_lite.toolboxes.toolbox_statevector module
- vqc_lite.toolboxes.toolbox_statevector.distance(psi1, psi2)
Compute the coordinate-wise distance between 2 statevectors.
- Parameters
psi1 ((jax) numpy array) – the first statevector
psi2 ((jax) numpy array) – the second statevector
- Returns
coordinate-wise distance
- Return type
float
- vqc_lite.toolboxes.toolbox_statevector.fidelity(psi1, psi2)
Compute the fidelity between 2 statevectors.
- Parameters
psi1 ((jax) numpy array) – the first statevector
psi2 ((jax) numpy array) – the second statevector
- Returns
fidelity
- Return type
float