Implement Controlled Gates in the MPS Simulator

Abierto
#1,121 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
38/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
C++
Estrellas
702
Forks
219
Merge medio
1 d 2 h
PR fusionados (30 d)
8

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de quantumlib/qsim

Todos los issues de quantumlib/qsim

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.