Qiskit circuits can only contain qubits and bits that are singly indexed in a contiguous manner starting from 0. Currently we just create registers large enough to contain the highest index in the pytket circuit. This is OK for qubits but for bits it causes incorrect results. The simplest fix is just to disallow this (rare) case.
Related issues
Fixes #337 .
Checklist
[x] I have performed a self-review of my code.
[ ] I have commented hard-to-understand parts of my code.
[ ] I have made corresponding changes to the public API documentation.
[x] I have added tests that prove my fix is effective or that my feature works.
[x] I have updated the changelog with any user-facing changes.
Description
Qiskit circuits can only contain qubits and bits that are singly indexed in a contiguous manner starting from 0. Currently we just create registers large enough to contain the highest index in the pytket circuit. This is OK for qubits but for bits it causes incorrect results. The simplest fix is just to disallow this (rare) case.
Related issues
Fixes #337 .
Checklist