Metadata-Version: 2.4
Name: cl1-solutions
Version: 1.0.3
Summary: All-in-one CLI and Python package to retrieve Jupyter Notebook solutions for CL-1, Information Retrieval (IR), and Quantum AI (QAI) assignments.
Home-page: https://github.com/example/cl1-solutions
Author: CL1 Contributor
Author-email: CL1 Contributor <developer@example.com>
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Education
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# CL-1, IR & QAI Practical Examination Solutions (`cl1-solutions`)

[![PyPI version](https://img.shields.io/pypi/v/cl1-solutions.svg)](https://pypi.org/project/cl1-solutions/)
[![Python Versions](https://img.shields.io/pypi/pyversions/cl1-solutions.svg)](https://pypi.org/project/cl1-solutions/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

> **All-in-One CLI & PyPI Package** to retrieve complete, thoroughly documented Jupyter Notebook solutions (`.ipynb`) for:
> - **Information Retrieval (IR)** Assignments (1 to 7) via `cl1.get_ir()`
> - **Quantum Artificial Intelligence (QAI)** Assignments (1 to 6) via `cl1.get_qai()`
> - **Computational Lab 1 (CL-1)** Assignments (1 to 13) via `cl1.get()`
>
> **Zero External Dependencies** | **No Physical Datasets Output for IR/QAI** | **Dataset & Reference Links Embedded in Solutions**

---

## ⚡ Quick Start

### 1. Install / Upgrade via pip

```bash
pip install --upgrade cl1-solutions
```

---

### 2. Using in Python or Jupyter Notebook Cells

You can call the functions directly in any Python script or notebook cell:

```python
import cl1_solutions as cl1

# ==========================================
# 🔍 1. Information Retrieval (IR)
# ==========================================
# Extract all 7 IR notebooks (no datasets output, links embedded in solutions)
cl1.get_ir()

# Or extract a specific IR assignment to a custom directory:
cl1.get_ir(3, dest="./my_ir_solutions")

# View list of all IR assignments and dataset links
cl1.list_ir()

# View problem description and dataset link
cl1.info_ir(3)

# View the complete solution directly in a Jupyter cell:
cl1.show_ir(3)


# ==========================================
# ⚛️ 2. Quantum Artificial Intelligence (QAI)
# ==========================================
# Extract all 6 QAI notebooks (no datasets output, references embedded in solutions)
cl1.get_qai()

# Or extract a specific QAI assignment:
cl1.get_qai(1, dest="./my_qai_solutions")

# View list of all QAI assignments and references
cl1.list_qai()

# View problem description and tutorial link
cl1.info_qai(1)

# View the complete solution directly in a Jupyter cell:
cl1.show_qai(1)


# ==========================================
# 📊 3. Computational Lab 1 (CL-1)
# ==========================================
cl1.get()       # Extracts all 13 CL-1 notebooks
cl1.get(6)      # Extracts CL-1 Problem 6
cl1.list()      # Lists CL-1 problems
```

---

### 3. Using from the Command Line (CLI)

```bash
# Information Retrieval (IR)
cl1-get ir                 # Extract all 7 IR notebooks
cl1-get ir 3               # Extract only IR Assignment 3
cl1-get list ir            # List all IR assignments

# Quantum Artificial Intelligence (QAI)
cl1-get qai                # Extract all 6 QAI notebooks
cl1-get qai 1              # Extract only QAI Assignment 1
cl1-get list qai           # List all QAI assignments

# Computational Lab 1 (CL-1)
cl1-get                    # Extract all 13 CL-1 notebooks
cl1-get 6                  # Extract CL-1 Problem 6
cl1-get list               # List CL-1 problems
```

---

## 🔍 Information Retrieval (IR) Assignments (1 to 7)

*No physical datasets are written to output; official dataset links are embedded directly inside the solutions.*

| No. | Category / Topic | Notebook File | Dataset Link / Reference |
|---|---|---|---|
| **1** | Text Preprocessing | `01_Text_Preprocessing_Stopwords_Stemming.ipynb` | Sample text document (Self-contained) |
| **2** | Inverted Index | `02_Inverted_Index_Document_Retrieval.ipynb` | Text document collection (Self-contained) |
| **3** | Probabilistic Diagnosis | `03_Bayesian_Network_Heart_Diagnosis.ipynb` | [UCI Heart Disease Dataset](https://archive.ics.uci.edu/dataset/45/heart+disease) |
| **4** | Text Classification | `04_Email_Spam_Filtering_Classification.ipynb` | [UCI SMS Spam Collection](https://archive.ics.uci.edu/dataset/228/sms+spam+collection) |
| **5** | Hierarchical Clustering | `05_Agglomerative_Hierarchical_Clustering.ipynb` | [Iris Dataset (Kaggle/UCI)](https://www.kaggle.com/datasets/uciml/iris) |
| **6** | Link Analysis | `06_PageRank_Algorithm.ipynb` | Interconnected HTML web-link graph (Self-contained) |
| **7** | Web Crawling | `07_Web_Crawler_Ecommerce_Products.ipynb` | [Books to Scrape](http://books.toscrape.com/) |

---

## ⚛️ Quantum Artificial Intelligence (QAI) Assignments (1 to 6)

*No physical datasets are written to output; reference tutorials and circuit generators are embedded directly inside the solutions.*

| No. | Category / Topic | Notebook File | Reference / Tutorial Link |
|---|---|---|---|
| **1** | Quantum Randomness | `01_16_Qubit_Random_Number_Generator.ipynb` | [Quantum Computing UK 16-Qubit QRNG](https://quantumcomputinguk.org/tutorials/16-qubit-random-number-generator) |
| **2** | Quantum Error Correction | `02_Noise_Error_Correction_Repetition_Code.ipynb` | [Qiskit Repetition Code QEC](https://learn.qiskit.org/course/quantum-hardware/introduction-to-quantum-error-correction-via-the-repetition-code) |
| **3** | Quantum Production Systems | `03_Tarrataca_Quantum_Production_System_3_Puzzle.ipynb` | Tarrataca & Wichert Quantum Production System (Self-contained) |
| **4** | Quantum Protocols | `04_Quantum_Teleportation_Algorithm.ipynb` | Quantum Teleportation Protocol (Self-contained) |
| **5** | Quantum Verification | `05_Randomized_Benchmarking_Protocol.ipynb` | Clifford Group Randomized Benchmarking (Self-contained) |
| **6** | Quantum Algorithms | `06_5_Qubit_Quantum_Fourier_Transform.ipynb` | [Quantum Computing UK 5-Qubit QFT](https://quantumcomputinguk.org/tutorials/quantum-fourier-transform-in-qiskit) |

---

## 🚀 Publishing Updates to PyPI

```bash
# 1. Clean and build archives
Remove-Item -Recurse -Force dist
python -m build

# 2. Upload to PyPI
python -m twine upload dist/*
```

---

## 📝 License

Distributed under the **MIT License**.
