eclipse-qrisp / Qrisp

Qrisp - a framework for high-level programming of Quantum computers
https://www.qrisp.eu/
Eclipse Public License 2.0
93 stars 26 forks source link

CircuitError: 'Name conflict on adding parameter: Φ' #16

Open MatP1337 opened 9 months ago

MatP1337 commented 9 months ago

While trying to construct a circuit with:

  from qrisp import *
  from sympy import symbols

  phi = symbols('Φ')
  beta = symbols('β')

  test=QuantumVariable(4)
  with control(test[2]):
      xxyy(phi=phi,beta=beta,qubits_0=test[0],qubits_1=test[1])

  with control(test[3]):
      rx(phi=phi,qubits=test[1])
  print(test.qs)
  compiled_qc = test.qs.to_latex()
  print(compiled_qc)

It returns a CircuitError: 'Name conflict on adding parameter: Φ'