mvn package -DskipTests inside the root folder.org.planqk.nisq.analyzer.core/target.For running the QuAntiL environment with all its components use the docker-compose of quantil-docker.
Otherwise, clone repository:
git clone https://github.com/UST-QuAntiL/nisq-analyzer.git
git clone [email protected]:UST-QuAntiL/nisq-analyzer.git
docker-compose pull
docker-compose up
docker-compose -f docker-compose.yml -f ../qiskit-service/docker-compose.yml pull
docker-compose -f docker-compose.yml -f ../qiskit-service/docker-compose.yml up
Now the NISQ Analyzer is available on http://localhost:8081/.
If you also started the Qiskit Service, it is available on http://localhost:5000/.
Build the project and deploy the WAR file located at org.planqk.nisq.analyzer.core/target to Tomcat.
Make sure you have an accessibly Postgres database and configure the application correspondingly.
Prerequisites:
Suitable sample data in JSON format can be found in nisq-analyzer-content.
Use the HAL Browser or Swagger-UI.
POST /nisq-analyzer/sdks/POST /nisq-analyzer/implementations/ (via API, an arbitrary UUID for the implementedAlgorithm attribute can be used for implementations of one quantum algorithm)Get the required selection parameters via GET /nisq-analyzer/selection-params with {algoId}.
For using the selection mechanism use
POST /nisq-analyzer/selection
{
"algorithmId": "UUID-OF-DESIRED-QUANTUM-ALGORITHM",
"parameters": {
"SELECTION-PARAM-1": "YOUR-VALUE-1",
...
"SELECTION-PARAM-N": "YOUR-VALUE-N",
"token": "YOUR-IBMQ-TOKEN"
},
"refreshToken": "YOUR-PLANQK-REFRESH-TOKEN"
}
The refreshToken is only needed when you want to analyze implementations that are hosted on the PlanQK platform.
Get analysis results via GET /nisq-analyzer/results/algorithm/{algoId}.
Start the execution of an implementation and its analysis result via POST /nisq-analyzer/analysis-results/{resId}/execute
{
"refreshToken": "YOUR-PLANQK-REFRESH-TOKEN"
}
Note: The refreshToken is only needed when you want to execute implementations that are hosted on the PlanQK platform.
Get execution results of an implementation via POST /nisq-analyzer/execution-results/.
For using the compiler selection mechanism use
POST /nisq-analyzer/compiler-selection
{
"providerName": "NAME-OF-PROVIDER",
"qpuName": "QPU-NAME",
"token": "YOUR-IBMQ-TOKEN",
"circuitLanguage": "LANGUAGE-OF-CIRCUIT",
"circuitName": "NAME-OF-CIRCUIT",
"circuitUrl": "URL-OF-RAW-CIRCUIT",
"refreshToken": "YOUR-PLANQK-REFRESH-TOKEN"
}
Note: The refreshToken is only needed when you want to execute implementations that are hosted on the PlanQK platform.
Note: Instead of the URL, also a file can be uploaded containing the quantum circuit.
Get compiler analysis results via GET /nisq-analyzer/compiler-results/jobs/{resId}.
Start the execution of a certain compiled circuit via POST /nisq-analyzer/compiler-results/{resId}/execute.
Get execution result of the circuit via POST /nisq-analyzer/execution-results/{resultId}.
For using the QPU and compiler selection mechanism use
POST /nisq-analyzer/qpu-selection
{
"simulatorsAllowed": "true/false",
"allowedProviders": ["NAME-OF-QUANTUM-CLOUD-OFFERING", "NAME-OF-QUANTUM-CLOUD-OFFERING-2"],
"tokens": {"NAME-OF-QUANTUM-CLOUD-OFFERING": "TOKEN-FOR-QUANTUM-CLOUD-OFFERING"},
"circuitLanguage": "LANGUAGE-OF-CIRCUIT",
"circuitUrl": "URL-OF-RAW-CIRCUIT",
"circuitName": "NAME-OF-CIRCUIT",
"refreshToken": "YOUR-PLANQK-REFRESH-TOKEN"
}
Note: The refreshToken is only needed when you want to execute implementations that are hosted on the PlanQK platform.
Note: The circuitName is optional.
Note: Instead of the URL, also a file can be uploaded containing the quantum circuit.
Note: The allowedProviders field is optional, and if it is not set, all providers are included in the QPU & compiler selection.
Get analysis results via GET /nisq-analyzer/qpu-selection-results/jobs/{resId}.
Start the execution of a certain compiled circuit via POST /nisq-analyzer/qpu-selection-results/{resId}/execute.
Get execution result of the circuit via POST /nisq-analyzer/execution-results/{resultId}.
Dies ist ein Forschungsprototyp. Die Haftung für entgangenen Gewinn, Produktionsausfall, Betriebsunterbrechung, entgangene Nutzungen, Verlust von Daten und Informationen, Finanzierungsaufwendungen sowie sonstige Vermögens- und Folgeschäden ist, außer in Fällen von grober Fahrlässigkeit, Vorsatz und Personenschäden, ausgeschlossen.
Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
Content type
Image
Digest
sha256:03c084954…
Size
331.4 MB
Last updated
about 2 years ago
docker pull planqk/nisq-analyzer