Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numerical values don't get assigned correctly to AI transpiled parametrized circuit #38

Open
HwajungKang opened this issue Aug 20, 2024 · 1 comment

Comments

@HwajungKang
Copy link

When I bind numerical values to the parameters of the AI transpiled circuit, they are not assigned correctly as marked with the colored rings in the attached figure, for example. I purposely made the values same as the parameter index for checking purposes, e.i. x[k] should have value of k.
With Qiskit transpiler, it works correctly. I used the most recent version, qiskit-transpiler-service==0.4.5.

AI_transpiled_ParametrizedQC
@HwajungKang
Copy link
Author

To reproduce here is the code and the circuit.

ai_transpile = TranspilerService(optimization_level=3, ai = 'true', backend_name='ibm_strasbourg')
qc_trans_ai = ai_transpile.run(myqc.decompose())

x = np.arange(20)
qc_trans_ai_vals = qc_trans_ai.assign_parameters(x)

myqc.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant