Replace `bitsize: SymbolicInt` with `dtype` in args of to common gates like Swap, CSWAP etc.

Abierto
#1,672 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
40/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
backend

Línea de trabajo

Start by reading the definitions of the listed bloqs: Identity, Swap, CSwap, the arithmetic comparisons, HammingWeightCompute, and PlusEqualProduct. Find where they currently accept bitsize and how nearby bloqs use dtype; update the listed arguments to support dtype and check related tests for those bloqs. Done when the listed bloqs consistently accept dtype instead of bitsize and their tests pass.

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

Descripción

bloqs/basic_gates

Some of the bloqs were written before we had the concept of dtypes. It'll be nice to update these to support dtype instead of bitsize such that they are more widely applicable.

Some examples -

  • Identity
  • Swap
  • CSwap
  • OutOfPlaceAdder
  • LessThanConstant
  • LessThanEqual
  • GreaterThan
  • GreaterThanConstant
  • LinearDepthGreaterThan
  • HammingWeightCompute
  • PlusEqualProduct
  • EqualsAConstant
Lenguaje dominante
Python
Estrellas
397
Forks
127
Merge medio
2 d 19 h
PR fusionados (30 d)
4

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/Qualtran

Todos los issues de quantumlib/Qualtran

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.