CPC G06N 10/00 (2019.01) [G06F 30/337 (2020.01)] | 20 Claims |
1. A method comprising:
creating a Constraint Satisfaction Problem (CSP) model of a directed cycle graph (DAG) representation of a quantum circuit, the quantum circuit having up to N gates, the DAG representation comprises vertices and edges, the vertices representing gates in the quantum circuit, edges representing qubit dependencies, the CSP model comprises decision variables, domains thereof and constraint on the values of the decision variables, the decision variables comprise:
N gate assignment variables (xi) having a domain including a set of one or more alternative types of gates; and
M pairs of assignment variables defining the edges (edge_ini, edge_outi) each of which having a domain of the N gate assignment variables ({x0 . . . xN−1});
automatically solving the CSP model using a CSP solver, wherein said automatically solving comprises determining a set of values for the set of decision variables that hold the constraints of the CSP model, wherein the set of values are selected for each decision variable from the corresponding domain of the decision variable; and
synthesizing the quantum circuit based on the set of values.
|