Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

StochasticCost as a feature of layers

Abierto
#411 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
cpp, python, tensorflow

Línea de trabajo

Comienza leyendo tensorflow_quantum/python/differentiators/stochastic_differentiator.py y la nueva interfaz de differentiator descrita en #409. Revisa la discusión de diseño y #230 para conocer el comportamiento previsto a nivel de capa; el trabajo estará completo cuando el submuestreo de PauliTerm encaje en la interfaz, utilice un backend de C++ op y funcione en distintos contextos de valores esperados.

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

Descripción

area/performance help wanted kind/feature-request skill-level/expert status/needs-design

In the past, subsampling of PauliTerms from input PauliSums was taken care of by an option in the SGDifferentiator module. However, there were a few issues with its implementation there:

  1. Instead of subsampling PauliTerms from PauliSums, it actually changed the shape of the measurement tensor by subsampling PauliSums.
  2. Had a python implementation instead of a C++ op backend.
  3. Does not fit the new differentiator interface being implemented in #409 .

Fortunately, in discussions on the design doc for the new differentiators, it looks like this could be a feature we still want to keep, and pull up to the level of tfq.layers. Since, this subsampling of PauliTerms can speed up the estimation of expectation values in any context, not just when seeking gradients. See also #230 for the possible interaction of such a feature with Engine. Thinking to take this on in the near future. Thoughts on this @MichaelBroughton @jaeyoo ?

Lenguaje dominante
Python
Estrellas
2.2k
Forks
665
Métricas de merge de PR
Sin PR fusionados en 30 d

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 tensorflow/quantum

Todos los issues de tensorflow/quantum

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.