myqlm-notebooks icon indicating copy to clipboard operation
myqlm-notebooks copied to clipboard

cbreak() returned ERR, error: nocbreak() returned ERR

Open bsiegelwax opened this issue 1 year ago • 0 comments

When executing

from qat.lang.AQASM import Program, H, CNOT

# Create a Program
qprog = Program()
# Number of qbits
nbqbits = 2
# Allocate some qbits
qbits = qprog.qalloc(nbqbits)

# Apply some quantum Gates
qprog.apply(H, qbits[0]) 
qprog.apply(CNOT, qbits[0], qbits[1])

# Export this program into a quantum circuit
circuit = qprog.to_circ()
# And display it!
circuit.display()

the error is

---------------------------------------------------------------------------
error                                     Traceback (most recent call last)
[/usr/lib/python3.10/curses/__init__.py](https://localhost:8080/#) in wrapper(func, *args, **kwds)
     77         noecho()
---> 78         cbreak()
     79 

error: cbreak() returned ERR

During handling of the above exception, another exception occurred:

error                                     Traceback (most recent call last)
4 frames
[/usr/lib/python3.10/curses/__init__.py](https://localhost:8080/#) in wrapper(func, *args, **kwds)
     98             stdscr.keypad(0)
     99             echo()
--> 100             nocbreak()
    101             endwin()

error: nocbreak() returned ERR

in Colab.

bsiegelwax avatar Nov 06 '23 16:11 bsiegelwax