IBMQEmulatorBackend
and IBMQBackend
don't properly enforce MaxNQubitsPredicate
#93
Labels
bug
Something isn't working
If I ask
IBMQBackend
andIBMQEmulatorBackend
which predicates they require withBackend.required_predicates
I get the following...I would've expected
MaxNQubitsPredicate
to appear on this list.As its not enforced I can run a 7 qubit circuit on a 5 qubit emulator which shouldn't be possible.
However if I compile the circuit first with
Backend.get_compiled_circuit
an error message is thrown saying the circuit does not respect theMaxNQubitsPredicate
. I'm not sure how this is enforced as it does not appear inBackend.required_predicates
.The text was updated successfully, but these errors were encountered: