-
Notifications
You must be signed in to change notification settings - Fork 4
Example: Search the existing case
Vu Tuan Hai edited this page Apr 10, 2024
·
2 revisions
An example of preparing a 3-qubit W state with the error (infidelity) is 0.001. Here, we search for suitable ansatz and its parameters in the existing database. If the required state is hard, then we will notify "Can not find ...".
from qoop.qcompilation.qsp import QuantumStatePreparation
compiler = QuantumStatePreparation.prepare(
state = 'w',
num_qubits = 3,
error_rate = 0.001)
Currently, we provide state 'ghz', 'w' and 'ame' and num_qubits from 3 to 5. The priority is to return the minimized depth; the lower the error rate, the higher the depth.
Copyright @ 2024 Hai et al
- Home
- Contribute guideline
- Installation guideline
- Package requirements
- Core
- GA-QAS
- Example
- Advanced