Skip to content
Advertisement

Bundled QC Circuit on Qiskt (Index error)

I’m trying to execute a list of ciruits on qiskit, but was faced with this strange dilemma:

JavaScript

I did not transpile any circuit before adding it to the list nor am I transpiling it during execution. Does anyone have an answer to why this is happening?

Edit: I’m not using a schedule either.

Advertisement

Answer

That error would be caused by passing an empty list to execute(). What are the contents of circuit_list in your code?

For the record, the execute() function is just a shorthand convenience function doig backend.run(transpile(experiments, backend)). So you’re doing the correct thing not transpiling before passing circuit objects to execute().

Advertisement