cianibegood / pysqkit

Apache License 2.0
1 stars 0 forks source link

Functions and classes not working with Qubit class #7

Open cianibegood opened 3 years ago

cianibegood commented 3 years ago

This is just to highlight the fact that currently many functions and classes can take QubitSystem as argument, but not Qubit (for instance TomoEnv). This of course has to be corrected.

BorisVarbanov commented 3 years ago

Hi, just took a look at this. As far as I can see this issue currently only happens in the TomoEnv (let me know if there are other instances).

A simple (and I think elegant) solution that I propose is the following: make all systems methods used by the tomography dual to QubitSystem and Qubit:

So basically that should allow a single qubit to be treated as a system of... 1 qubit. Let me know what you think and I can fix this.