diff --git a/src/app/components/navigation/navigation.component.html b/src/app/components/navigation/navigation.component.html index 7dbf3dd3..b3a4eb77 100644 --- a/src/app/components/navigation/navigation.component.html +++ b/src/app/components/navigation/navigation.component.html @@ -57,13 +57,6 @@ routerLinkActive="routerLinkActive"> Compute Resources - - Compute Resources - - - Qunicorn - diff --git a/src/app/components/qunicorn-service/qunicorn-view/qunicorn-service.component.html b/src/app/components/qunicorn-service/qunicorn-view/qunicorn-service.component.html index 7ebf0513..023e9709 100644 --- a/src/app/components/qunicorn-service/qunicorn-view/qunicorn-service.component.html +++ b/src/app/components/qunicorn-service/qunicorn-view/qunicorn-service.component.html @@ -11,10 +11,9 @@ - Define your circuit and the type of the circuit for the deployment: - + Define the name, your circuit and the type of the circuit for the deployment: + + Choose a JobName: + Input your Deployment ID from the response in Step 1: Choose the platform where the Job should be running: - + IBM diff --git a/src/app/components/qunicorn-service/qunicorn-view/qunicorn-service.component.ts b/src/app/components/qunicorn-service/qunicorn-view/qunicorn-service.component.ts index 011cdadb..549f21d7 100644 --- a/src/app/components/qunicorn-service/qunicorn-view/qunicorn-service.component.ts +++ b/src/app/components/qunicorn-service/qunicorn-view/qunicorn-service.component.ts @@ -3,6 +3,8 @@ import { Router } from '@angular/router'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { UtilService } from '../../../util/util.service'; + + @Component({ selector: 'qunicorn-service', templateUrl: './qunicorn-service.component.html', @@ -13,11 +15,13 @@ export class QunicornAppComponent implements OnInit { variableNames = ['name']; loading = true; - userInput = ''; + userInput: string = ''; deploymentID = 3; - jobID = 3; + deploymentName: string = 'PlanQK-UseCase'; + jobID: any = 1; + jobName: string = 'PlanQK-Job'; - selectedPlatform = ''; // Added property for the selected platform + selectedPlatform = 'IBM'; // Added property for the selected platform selectedLanguage = 'QASM2'; response: any; @@ -35,9 +39,9 @@ export class QunicornAppComponent implements OnInit { private router: Router, private utilService: UtilService, private http: HttpClient - ) {} + ) { } - ngOnInit(): void {} + ngOnInit(): void { } getJobs() { this.http @@ -59,25 +63,26 @@ export class QunicornAppComponent implements OnInit { .set('accept', 'application/json') .set('Content-Type', 'application/json'); - if ((this.userInput = '')) { + if (this.userInput === '') { this.userInput = 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[2];\ncreg meas[2];\nh q[0];\ncx q[0],q[1]; \ \nbarrier q[0],q[1];\nmeasure q[0] -> meas[0];\nmeasure q[1] -> meas[1];\n'; } - console.log(this.userInput); + console.log('userInput:', this.userInput); + console.log('selectedLanguage:', this.selectedLanguage); const requestBody = { programs: [ { - quantumCircuit: - 'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[2];\ncreg meas[2];\nh q[0];\ncx q[0],q[1]; \ - \nbarrier q[0],q[1];\nmeasure q[0] -> meas[0];\nmeasure q[1] -> meas[1];\n', - // quantumCircuit: this.userInput, - assemblerLanguage: 'QASM2', + // quantumCircuit: + //'OPENQASM 2.0;\ninclude "qelib1.inc";\nqreg q[2];\ncreg meas[2];\nh q[0];\ncx q[0],q[1]; \ + //\nbarrier q[0],q[1];\nmeasure q[0] -> meas[0];\nmeasure q[1] -> meas[1];\n', + quantumCircuit: this.userInput, + assemblerLanguage: this.selectedLanguage, }, ], - name: 'SeQuenC-UseCase', + name: this.deploymentName, }; this.http @@ -116,7 +121,7 @@ export class QunicornAppComponent implements OnInit { .set('Content-Type', 'application/json'); const requestBody = { - name: 'JobName', + name: this.jobName, providerName: 'IBM', deviceName: 'aer_simulator', shots: 4000,
Define your circuit and the type of the circuit for the deployment:
Define the name, your circuit and the type of the circuit for the deployment:
Choose a JobName:
Input your Deployment ID from the response in Step 1:
Choose the platform where the Job should be running: