1-wiring-up.ipynb file has issues

Abierto
#1,766 1 comentario 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
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
jupyter-notebook, python
Área
testing-qa

Línea de trabajo

Start by opening 1-wiring-up.ipynb and running the cell shown in the issue to reproduce the QInt comparison error. Trace the call through BloqBuilder.add_register and qualtran.testing.assert_valid_cbloq to locate the datatype change causing it. Done means the notebook renders successfully and the validity check passes.

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

Descripción

After the recent datatype changes comment on github I noticed that the file 1-wiring-up.ipynb is not rendering the following cell

`from qualtran import BloqBuilder
from qualtran import QInt

bb = BloqBuilder()
x = bb.add_register('x', QInt(8))

do_nothing = bb.finalize(x=x)

import qualtran.testing as qlt_testing
qlt_testing.assert_valid_cbloq(do_nothing)`

The below error is showing

TypeError: '<=' not supported between instances of 'QInt' and 'int'

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.