this runs fine at the moment, but the length of the DefinitionComplex isn't checked.
With the addition, it now returns an error: RuntimeError: Running Circuit failed GenericError { msg: "Incorrect density matrix dimensions: 1 elements, but the DefinitionComplex register is 16 elements long." }
The following code does not return an error:
Just a draft that solves the following inconsistency:
this runs fine at the moment, but the length of the DefinitionComplex isn't checked. With the addition, it now returns an error:
RuntimeError: Running Circuit failed GenericError { msg: "Incorrect density matrix dimensions: 1 elements, but the DefinitionComplex register is 16 elements long." }
The following code does not return an error:Not implemented yet, but the same would be true for the PragmaGetStateVector too.