Is there any way to get the quantum gate values more precisely in qiskit?
However, I would like to know the more precise value of the first argument of R() i.e. 1.23 in R(1.23,pi/2) e.g. it could be 1.228967
Can we generate details files of angles of quantum circuits?
Here is the code for that:
import numpy as np from qiskit import QuantumCircuit from qiskit.transpiler.passes import Decompose qc = QuantumCircuit(2) initial_state = np.array([1, 1, 0, 1], dtype=float) initial_state /= np.linalg.norm(initial_state) qc.initialize(initial_state) qc.decompose().decompose().decompose().decompose().draw("mpl")