# US 2026/0037845 A1 · Compiling quantum programs

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0037845 A1
- Document ID: US20260037845A1
- Status: Published application
- Kind: A1
- Application number: 19/335,125
- Filed: 2025-09-22
- Published: 2026-02-05
- Earliest claimed: 2021-10-12
- Assignees: Classiq Technologies Ltd.
- Applicants: Classiq Technologies LTD.
- Inventors: Amir Naveh; Shmuel Ur; Yehuda Naveh; Ofek Kirzner; Ravid Alon; Adam Goldfeld; Nir Minerbi; Peleg Emanuel; Nati Erez; Israel Reichental
- Web page: https://patentgrep.com/patent/US20260037845A1

## CPC

- G06N 3/006: based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
- G06N 10/00: Quantum computing, i.e. information processing based on quantum-mechanical phenomena
- G06N 3/126: Evolutionary algorithms, e.g. genetic algorithms or genetic programming
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06N 10/20: Models of quantum computing, e.g. quantum circuits or universal quantum computers
- G06N 10/60: Quantum algorithms, e.g. based on quantum optimisation, quantum Fourier or Hadamard transforms
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method, apparatus, a product comprising: obtaining a propagator module of a quantum function of a quantum program, the propagator module is programmed using a classical programming language, the propagator module configured to obtain as input a first domain of values for a first circuit parameter and a second domain of values for a second circuit parameter, and to output first and second sub-domains of the first and second domains of values, respectively; obtaining constraints of the quantum function; obtaining an optimization scheme that is defined over the first and second circuit parameters; generating a constraint problem based on the propagator module, the constraints, and the optimization scheme; resolving the constraint problem based on a constraint solver, a resolution comprising at least first and second values for the first and second circuit parameter; and synthesizing the quantum function according to the resolution.

## Claims

### Claim 1

A method comprising:
obtaining a quantum program comprising a first quantum function and a second quantum function;
obtaining a first function-specific synthesis module that is configured to synthesize an implementation of the first quantum function;
obtaining a first function-specific propagator module that is configured to implement variable assignment propagation with respect to an implementation of the first quantum function as generated by the first function-specific synthesis module;
obtaining a second function-specific synthesis module that is configured to synthesize an implementation of the second quantum function;
obtaining a second function-specific propagator module that is configured to implement variable assignment propagation with respect to an implementation of the second quantum function as generated by the second function-specific synthesis module;
generating a constraint problem representing implementations of the quantum program, the constraint problem comprising at least a first constraint associated with the first quantum function and a second constraint associated with the second quantum function;
implementing a Maintain Arc Consistency (MAC) algorithm to determine a solution to the constraint problem, wherein said implementing the MAC algorithm comprises utilizing the first function-specific propagator module and the second function-specific propagator module; and
synthesizing a quantum circuit that implements the quantum program, the quantum circuit comprising a first portion representing the first quantum function and a second portion representing the second quantum function, wherein said synthesizing comprises utilizing the first function-specific synthesis module to generate the first portion of the quantum circuit and utilizing the second function-specific synthesis module to generate the second portion of the quantum circuit.

### Claim 2 (depends on 1)

The method of claim 1, wherein the at least first constraint comprises at least one of: a constraint on a minimal number of qubits of the quantum function, or a hardware constraint of a target quantum computer.

### Claim 3 (depends on 1)

The method of claim 1, wherein said generating the constraint problem is based on the first function-specific propagator module, the second function-specific propagator module, the first constraint, the second constraint and an optimization scheme.

### Claim 4 (depends on 3)

The method of claim 3, wherein the optimization scheme is obtained from a user, the optimization scheme indicating a user preference regarding the quantum circuit.

### Claim 5 (depends on 1)

The method of claim 1, wherein the constraint problem is a Constraint Satisfaction Problem (CSP), wherein said implementing the MAC algorithm is performed by a CSP solver, wherein the CSP solver is configured to invoke the first function-specific propagator module and the second function-specific propagator module when propagating variable assignment decisions.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first constraint comprises one or more precedence constraints indicate wirings of a first set of qubits between the first function and another function of the quantum program, wherein a second set of qubits that is manipulated by the first function is not associated with any precedence constraint, whereby implementing the MAC algorithm comprises determining wirings of the second set of qubits.

### Claim 7 (depends on 1)

The method of claim 1, wherein the first function-specific synthesis module and the first function-specific propagator module are obtained from a user.

### Claim 8 (depends on 1)

The method of claim 1, wherein the first function-specific propagator module is programmed in a classical programming language.

### Claim 9 (depends on 8)

The method of claim 8, wherein first function-specific synthesis module is programmed in a second classical programming language, the second classical programming language being different than the classical programming language.

### Claim 10

An apparatus comprising a processor and coupled memory, the processor being adapted to:
obtain a quantum program comprising a first quantum function and a second quantum function;
obtain a first function-specific synthesis module that is configured to synthesize an implementation of the first quantum function;
obtain a first function-specific propagator module that is configured to implement variable assignment propagation with respect to an implementation of the first quantum function as generated by the first function-specific synthesis module;
obtain a second function-specific synthesis module that is configured to synthesize an implementation of the second quantum function;
obtain a second function-specific propagator module that is configured to implement variable assignment propagation with respect to an implementation of the second quantum function as generated by the second function-specific synthesis module;
generate a constraint problem representing implementations of the quantum program, the constraint problem comprising at least a first constraint associated with the first quantum function and a second constraint associated with the second quantum function;
implement a Maintain Arc Consistency (MAC) algorithm to determine a solution to the constraint problem, wherein said implementing the MAC algorithm comprises utilizing the first function-specific propagator module and the second function-specific propagator module; and
synthesize a quantum circuit that implements the quantum program, the quantum circuit comprising a first portion representing the first quantum function and a second portion representing the second quantum function, wherein said synthesizing comprises utilizing the first function-specific synthesis module to generate the first portion of the quantum circuit and utilizing the second function-specific synthesis module to generate the second portion of the quantum circuit.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the at least first constraint comprises at least one of: a constraint on a minimal number of qubits of the quantum function, or a hardware constraint of a target quantum computer.

### Claim 12 (depends on 10)

The apparatus of claim 10, wherein the apparatus is configured to generate the constraint problem based on the first function-specific propagator module, the second function-specific propagator module, the first constraint, the second constraint and an optimization scheme.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the optimization scheme is obtained from a user, the optimization scheme indicating user preferences regarding the quantum circuit.

### Claim 14 (depends on 10)

The apparatus of claim 10, wherein the first function-specific synthesis module and the first function-specific propagator module are obtained from a user.

### Claim 15 (depends on 10)

The apparatus of claim 10, wherein the first function-specific propagator module is programmed in a classical programming language.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein first function-specific synthesis module is programmed in a second classical programming language, the second classical programming language being different than the classical programming language.

### Claim 17

A computer program product comprising a non-transitory computer readable medium retaining program instructions, which program instructions when read by a processor, cause the processor to:
obtain a quantum program comprising a first quantum function and a second quantum function;
obtain a first function-specific synthesis module that is configured to synthesize an implementation of the first quantum function;
obtain a first function-specific propagator module that is configured to implement variable assignment propagation with respect to an implementation of the first quantum function as generated by the first function-specific synthesis module;
obtain a second function-specific synthesis module that is configured to synthesize an implementation of the second quantum function;
obtain a second function-specific propagator module that is configured to implement variable assignment propagation with respect to an implementation of the second quantum function as generated by the second function-specific synthesis module;
generate a constraint problem representing implementations of the quantum program, the constraint problem comprising at least a first constraint associated with the first quantum function and a second constraint associated with the second quantum function;
implement a Maintain Arc Consistency (MAC) algorithm to determine a solution to the constraint problem, wherein said implementing the MAC algorithm comprises utilizing the first function-specific propagator module and the second function-specific propagator module; and
synthesize a quantum circuit that implements the quantum program, the quantum circuit comprising a first portion representing the first quantum function and a second portion representing the second quantum function, wherein said synthesizing comprises utilizing the first function-specific synthesis module to generate the first portion of the quantum circuit and utilizing the second function-specific synthesis module to generate the second portion of the quantum circuit.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the first constraint comprises at least one of: a constraint on a minimal number of qubits of the quantum function, or a hardware constraint of a target quantum computer.

### Claim 19 (depends on 17)

The computer program product of claim 17, wherein the constraint problem is generated based on the first function-specific propagator module, the second function-specific propagator module, the first constraint, the second constraint and an optimization scheme.

### Claim 20 (depends on 17)

The computer program product of claim 17, wherein the optimization scheme is obtained from a user, the optimization scheme indicating user preferences regarding the quantum circuit.
