Quantum Information Feature Engineering Library
Project description
QIFeatureX 🔮
Quantum Information Feature Engineering Library
QIFeatureX is an open-source Quantum Information Feature Engineering library that converts quantum states (pure vectors or density matrices) into machine-learning-ready numerical feature vectors. It enables ML-driven analysis of entanglement, coherence, entropy, nonlocality, and quantum similarity without heavy symbolic calculations.
QIFeatureX is designed for research in quantum computing, quantum communication, quantum sensing, quantum machine learning, and condensed matter physics.
✨ Key Features
- 📌 Convert quantum states → structured ML feature tables
- 📌 Support for pure states (
|ψ⟩) and density matrices (ρ) - 📌 Entanglement metrics: concurrence, negativity, log-negativity, tangle
- 📌 Entropy metrics: von Neumann, Rényi-2, linear entropy
- 📌 Coherence measures: ℓ₁-coherence, relative entropy of coherence
- 📌 Mutual information & bipartite correlations
- 📌 Bell-CHSH violation measurement
- 📌 Quantum similarity distances: trace distance, fidelity, Bures, Hilbert-Schmidt
- 📌 Fully compatible with scikit-learn pipelines
🚀 Installation
pip install qifeaturex
### 2. Right below that section, paste the Basic Usage example block:
```markdown
---
## 🧠 Basic Usage Example
```python
import numpy as np
from qifeaturex import extract_features
from qifeaturex.ml import QIFeatureExtractor
from sklearn.ensemble import RandomForestClassifier
from sklearn.pipeline import Pipeline
def bell_state_phi_plus():
psi = np.zeros(4, dtype=complex)
psi[0] = psi[3] = 1/np.sqrt(2)
return psi
# Create a Bell state and convert to density matrix
psi = bell_state_phi_plus()
rho = np.outer(psi, psi.conj())
# Extract features
df = extract_features([rho], dims=(2,2))
print(df)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qifeaturex-0.1.1.tar.gz.
File metadata
- Download URL: qifeaturex-0.1.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
063b9592901a29d68521c7fceda803369822d58ea7c3251e89de115bbe963cad
|
|
| MD5 |
3594a710a0f447247e0975d5a7939adb
|
|
| BLAKE2b-256 |
a7b5f2d8538bfe0841b8c43619fcee0084d710e4efef2cdf244a0ed6ce41b34a
|
File details
Details for the file qifeaturex-0.1.1-py3-none-any.whl.
File metadata
- Download URL: qifeaturex-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bf2586803bffe71c9a5e823a67d0c109e191867e8869a171dd35a5995c681ef
|
|
| MD5 |
30ee0fc26c4a38cf5782525cba1acb42
|
|
| BLAKE2b-256 |
a512783214b8f26d5295b923705ecae31601086628446c904e66d9556817c2a9
|