-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add frontend problem mask for OpenQASM code processing
- Loading branch information
1 parent
9c9e789
commit 5d35d9d
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { | ||
Heading, | ||
Link, | ||
Spacer, | ||
Text, | ||
} from "@chakra-ui/react"; | ||
import { NextPage } from "next"; | ||
import { useState } from "react"; | ||
import { Layout } from "../../components/layout/Layout"; | ||
import { SolverConfiguration } from "../../components/solvers/SolverConfiguration"; | ||
import { TextInputMask } from "../../components/solvers/TextInputMask"; | ||
|
||
const CircuitProcessing: NextPage = () => { | ||
const [qasmString, setQASMString] = useState(""); | ||
|
||
return ( | ||
<Layout> | ||
<Heading as="h1">OpenQASM Processing</Heading> | ||
<Text color="text" align="justify"> | ||
Give a circuit in {" "} | ||
<Link | ||
href="https://en.wikipedia.org/wiki/OpenQASM" | ||
color={"blue.400"} | ||
> | ||
OpenQASM | ||
</Link>{" "} | ||
to process it. You can choose to execute the circuit, optimize it or | ||
apply error mitigation strategies. | ||
</Text> | ||
|
||
<Spacer /> | ||
|
||
<TextInputMask | ||
problemTypeId="circuit-processing" | ||
textPlaceholder="Enter your OpenQASM code" | ||
text={qasmString} | ||
setText={setQASMString} | ||
/> | ||
|
||
<SolverConfiguration problemTypeId="circuit-processing" problemInput={qasmString} /> | ||
</Layout> | ||
); | ||
}; | ||
export default CircuitProcessing; |