Implement Controlled Gates in the MPS Simulator

Aperta
#1,121 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
backend

Direzione di ricerca

Start with the stubbed ApplyControlledGate in lib/mps_simulator.h, then read the existing MPS gate application code and tests to understand how operations are represented and simulated. Add controlled-gate tests alongside the existing MPS tests; done means controlled operations are simulated correctly and the tests pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What is your request or suggestion?

In docs/mps.md, controlled gates are listed as a current limitation

  • Controlled gates are not yet implemented ApplyControlledGate exists but is a stub ( // TODO)

it would be great to implement controlled gates as that would extend the functionality of the MPS simulator and allow circuits containing controlled operations to be simulated.

What solution or approach do you envision?

In lib/mps_simulator.h, implement the currently stubbed ApplyControlledGate function.
The implementation should integrate with the existing MPS simulation and include appropriate tests for controlled-gate operations.

How urgent is this for you?

None

Lingua principale
C++
Stelle
702
Fork
219
Merge medio
1g 2h
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quantumlib/qsim

Tutte le issue di quantumlib/qsim

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.