Skip to content

random_circuit fails if conditional=True for large circuits #6994

@ewinston

Description

@ewinston

Information

  • Qiskit Terra version: 0.19.0.dev0+07299e1
  • Python version:
  • Operating system:

What is the current behavior?

When attempting to generate a random circuit using qiskit.circuit.random.utils.random_circuit with ~60 qubits with mid-circuit conditionals an error is generated;

_bounded_integers.pyx in numpy.random._bounded_integers._rand_int64()

ValueError: low >= high

Steps to reproduce the problem

from qiskit.circuit.random.utils import random_circuit
random_circuit(64, 64, conditional=True)

What is the expected behavior?

Suggested solutions

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions