We democratise access to specialised hardware like quantum computers which are typically controlled by a single party (large companies, governments etc..). You can upload your Open- QASM circuit to the Dapp, calculate the cost of the computation and call the smart contract to add the circuit without having to set up any accounts, licensing or API keys with the computing provider. This triggers a series of API calls which ultimately reaches the level of an IBM quantum computer. The result is posted on-chain along with the hash of the quantum circuit making it privacy preserving and allowing the user to execute conditional logic based on the result of the computation. This also makes the compuation more efficient insofar as circuits that have already been executed in past have a result associated with them which can always be fetched seamleslly without re-running the computation.
Adapted from from Nexth A Next.js + Ethereum starter kit to quickly ship Web3 Apps
npm run dev
# or
yarn dev
The smart contract is live on PolygonMumbai: https://mumbai.polygonscan.com/address/0xbD1deBcB2E5D80187a149fB52368aa4229eaAD09.
Chainlink Functions:
- https://github.com/Qu-Chain/quantum-compupaytion-dapp/blob/main/packages/contracts/contracts/QuantumOracle.sol
- https://github.com/Qu-Chain/quantum-compupaytion-dapp/tree/main/packages/contracts/functions_source_code
- https://github.com/Qu-Chain/quantum-compupaytion-dapp/blob/main/packages/contracts/scripts/deploy.ts
Chainlink Automation: