量子回路の連結
The Classiq synthesis engine significantly improves the generation of quantum circuits. For example, starting from a functional model, the engine can produce a shallower circuit or with fewer two-qubit gates, which are difficult for the hardware to perform.
Concatenating two quantum circuits can be beneficial when one circuit is very large. Synthesizing an optimized circuit takes a long time, but it only needs to be done once. The second circuit is smaller, and the synthesis process is faster, as it needs to be repeated multiple times.
To do so, we synthesize the big circuit and small circuit separately:
If the circuits have a different number of qubits, we then connect the two circuits on the right register. Let's call this register “res”. First, we find this register after the synthesis by:
Similarly, we do the same to the small circuit. In this case, let’s assume the small circuit has only the “res” register.
Then, we take the circuits' qasm files and connect the circuits using Qiskit:
Now, the quantum circuit `qc` is connected from the small and the big circuits. To execute the circuit, save its qasm file and upload it to the Classiq IDE.
For a concrete example, the HHL algorithm finds x for Ax=b, for a given A and b. The difficult part of the algorithm deals with A and the easy block deals with only state preparation for b. For problems that b change iteratively, we can synthesize iteratively the state preparation block and keep using the circuit that deals with A. These kinds of problems are common in engineering, and in physical systems.
This simulation was demonstrated together with Hewlett Packard Enterprise.
References:
https://arxiv.org/abs/2312.04933
https://www.computer.org/csdl/proceedings-article/qce/2023/432302a117/1SuQSLYiTT2
The Classiq synthesis engine significantly improves the generation of quantum circuits. For example, starting from a functional model, the engine can produce a shallower circuit or with fewer two-qubit gates, which are difficult for the hardware to perform.
Concatenating two quantum circuits can be beneficial when one circuit is very large. Synthesizing an optimized circuit takes a long time, but it only needs to be done once. The second circuit is smaller, and the synthesis process is faster, as it needs to be repeated multiple times.
To do so, we synthesize the big circuit and small circuit separately:
If the circuits have a different number of qubits, we then connect the two circuits on the right register. Let's call this register “res”. First, we find this register after the synthesis by:
Similarly, we do the same to the small circuit. In this case, let’s assume the small circuit has only the “res” register.
Then, we take the circuits' qasm files and connect the circuits using Qiskit:
Now, the quantum circuit `qc` is connected from the small and the big circuits. To execute the circuit, save its qasm file and upload it to the Classiq IDE.
For a concrete example, the HHL algorithm finds x for Ax=b, for a given A and b. The difficult part of the algorithm deals with A and the easy block deals with only state preparation for b. For problems that b change iteratively, we can synthesize iteratively the state preparation block and keep using the circuit that deals with A. These kinds of problems are common in engineering, and in physical systems.
This simulation was demonstrated together with Hewlett Packard Enterprise.
References:
https://arxiv.org/abs/2312.04933
https://www.computer.org/csdl/proceedings-article/qce/2023/432302a117/1SuQSLYiTT2