qbraid-qir icon indicating copy to clipboard operation
qbraid-qir copied to clipboard

Add support for generating QIR compliant with `Base Profile`

Open Tarun-Kumar07 opened this issue 10 months ago • 0 comments

Context

Presently, qbraid-qir supports qir generation with custom profile. The request is to generate qir compliant with the Base Profile.

Acceptance criteria

  • Add support for generating Base Profile for both cirq and qasm3 circuits, without introducing breaking changes for clients.
  • Have automated tests to determine if the generated QIR is compliant with Base Profile
  • For example, the api for converting cirq circuits can look like
   import cirq
   from qbraid_qir.cirq import cirq_to_qir
   
   q0, q1 = cirq.LineQubit.range(2)
   
   bell_circuit = cirq.Circuit(
       cirq.H(q0), 
       cirq.CNOT(q0, q1) 
   )
   
   custom_profile_qir = cirq_to_qir(bell_circuit, "Bell circuit") # By default custom profile
   base_profile_qir = cirq_to_qir(bell_circuit, "Bell circuit", "BaseProfile")

Tarun-Kumar07 avatar Mar 21 '25 13:03 Tarun-Kumar07