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
As discussed @jeffreyjgong, one option is to store a list of self.gates = [] in ToplogicalCircuit. This will help you keep track of the gates in the circuit.
Then, for printing the logical quantum circuit, you can either create another Qiskit QuantumCircuit that is equivalent to the logical quantum circuit, and print that out OR you can create your own circuit printing utility.
An example of adding an X gate and also tracking it in self.gates = []:
I think we can store a list of tuples of type Tuple[qiskit.circuit.instruction.Instruction, List[qiskit.circuit.quantumregister.Qubit]] in self.gates, which can then be used for use cases such as drawing the logical circuit.
We need a way to uniquely represent tcirc components (e.g. single/multi qubit gates, readout, etc).
Among other use cases, this is essential for properly decoding the a tcirc readout string.
Some potential resources include:
The text was updated successfully, but these errors were encountered: