You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since this is the number of qubits suggested by the dimensions of the state-vector, which is twice too many when the register is storing a density matrix (and should instead refer to numDensityQubits).
Consider renaming
numDensityQubits -> numQubitsRepresented
numQubits -> numQubitsInStateVec
Still seems hacky and gross ¯\(ツ)/¯
The text was updated successfully, but these errors were encountered:
The above renaming has been done in the density-matrix branch, though could be improved.
Operations performed on statevecs (prefixed with statevec_) consult qureg.numQubitsInStateVec.
Operations on general QubitRegisters consult qureg.numQubitsRepresented
Since this is the number of qubits suggested by the dimensions of the state-vector, which is twice too many when the register is storing a density matrix (and should instead refer to
numDensityQubits
).Consider renaming
numDensityQubits
->numQubitsRepresented
numQubits
->numQubitsInStateVec
Still seems hacky and gross ¯\(ツ)/¯
The text was updated successfully, but these errors were encountered: