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

Bug: Printing a circuit with square root of symbolic parameter #107

Open
renezander90 opened this issue Dec 11, 2024 · 1 comment
Open
Assignees

Comments

@renezander90
Copy link
Contributor

from qrisp import *
import numpy as np
import sympy as sp

qv = QuantumVariable(2)
gamma = Symbol('γ')
rx(sp.sqrt(gamma),qv)
qc = qv.qs.compile()

print(qc)
@Nik-SteinFraunh
Copy link
Contributor

Nik-SteinFraunh commented Dec 16, 2024

Cannot be implemented due to incompatability with Qiskit Parameters. Allowed functions can be found here:
https://docs.quantum.ibm.com/api/qiskit/qiskit.circuit.ParameterExpression

Above mentioned functions are also not supported as of yet. Other functions might be possible with a work-around, i.e. just expressing them as strings.
Should this be a feature?

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

3 participants