Skip to content

Commit 43f2f8b

Browse files
day 6 :- feat: implement Clifford Data Regression (CDR) training and correction logic
1 parent f9bc484 commit 43f2f8b

5 files changed

Lines changed: 1519 additions & 64 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ learning.md
4040

4141
# Roadmap file
4242
qc Month 1.docx
43+
~$ Month 1.docx

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ flowchart TD
101101
- [x] **PEC**: Build noise-inverse channel from Choi matrices (`mitigation/pec.py``compute_choi_matrix_*()`)
102102
- [x] **PEC**: Implement PEC sampling procedure with overhead analysis ✅
103103
- [x] **PEC**: Document exponential sampling overhead (practical only for shallow circuits)
104-
- [ ] **CDR**: Generate near-Clifford training circuits
105-
- [ ] **CDR**: Fit linear regression (noisy → exact)
106-
- [ ] **CDR**: Apply learned correction to target circuit
104+
- [x] **CDR**: Generate near-Clifford training circuits
105+
- [x] **CDR**: Fit linear regression (noisy → exact)
106+
- [x] **CDR**: Apply learned correction to target circuit
107107

108108
### 🔌 Phase 3 — Interface + Hardware `Days 7–8`
109109
- [x] Design abstract `Mitigator` base class (`mitigation/base.py`)
110110
- [x] Implement: `ZNEMitigator` (Day 4 ✅) · `PECMitigator` (Day 5) · `CDRMitigator` (Day 6)
111-
- [ ] Write unit tests for each — correctness on simulator first
111+
- [x] Write unit tests for each — correctness on simulator first
112112
- [ ] Submit all 3 mitigators to IBM backend
113113
- [ ] Run 5+ circuit depths per mitigator
114114
- [ ] Collect raw + mitigated expectation values

0 commit comments

Comments
 (0)