Closed jlbosse closed 1 year ago
Base: 88.31% // Head: 88.27% // Decreases project coverage by -0.03%
:warning:
Coverage data is based on head (
b4205bb
) compared to base (a88f5e0
). Patch coverage: 100.00% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
LGTM
I have code where I need a "scratch" register to store a temporary state. I was allocating creating this scratch register using scratch = similar(register)
and when I wanted to run a density matrix simulation (with noise channels added to the circuit) instead of a noiseless state vector simulation it was complaining about the lack of similar(::DensityMatrix)
Or more generally: It would be great that any code that can be run with a ArrayReg
can just as well be run with a DensityMatrix
for noisy simulations.
The title says it all. I also checked that #416 and #408 don't add
similar(::DensityMatrix)