Is there a way to represent measurements in other bases in Qiskit? The default measurement is in the Z (computational) basis. Can I also depict measurement in X, Y and general Pauli Measurements?
I know that I can apply a suitable unitary and then measure in the Z basis, but I am looking for a way to add the measurements to the circuit almost like "gates". I will be putting many such measurements in sequence in my circuits. I will be happy to use any external/in-development tool that allows this and interfaces well with Qiskit.
... ~/anaconda3/envs/paulimeas/lib/python3.6/site-packages/qiskit/visualization/text.py in _instruction_to_gate(self, instruction, layer) 1002 gate = MeasureFrom() 1003 else: # measure_pauli -> 1004 basis = instruction.params.upper() 1005 gate = MeasureFrom(basis) 1006 layer.set_qubit(instruction.qargs[0], gate)
AttributeError: 'DAGNode' object has no attribute 'params'
– shashvat Mar 09 '21 at 09:52