Quantum Hedge Fund


Quantum Hedge Fund is an on-chain hedge fund powered by Chainlink that implements advanced fund management strategies by using a quantum algorithm for portfolio diversification. This project features smart contracts for managing a cryptocurrency vault, integrating Chainlink oracles for accurate pricing and Quickswap for token exchanges.


  • Token Management: Support for a diverse range of cryptocurrencies, enabling dynamic adjustments to the portfolio.
  • Vault Shares: Tokenization of shares in the vault using VaultShareToken.
  • Deposits and Withdrawals: Robust mechanisms for depositing and withdrawing funds.
  • Automated Rebalancing: Portfolio rebalancing executed based on strategies defined in the FundManager contract.
  • Chainlink and Uniswap Integration: Ensures reliable price feeds and efficient liquidity management.
  • Quantum portfolio diversification: unique and advanced fund strategy based on a quantum algorithm



  • Datafeed: calculating the total value of the pool
  • Functions: retrieving allocations from the quantum oracle
  • Automation: initiating rebalancing of assets

Smart Contracts:

  1. Vault Contract: Manages core functions such as deposits, withdrawals, and rebalancing.
  2. FundManager Contract: Oversees token weights and handles oracle requests for portfolio management.
  3. VaultShareToken Contract: ERC20 token representing a stake in the vault.

Quantum Computing API:

  • Send asset prices to the API and choose algorithm to run (quantum or quantum-inspired)
  • Runs quantum algorithm with asset prices
  • Sends optimal selection of assets from quantum algorithm
  • Draws diagram of quantum program and plots optimisation
  • Deployed at URL

User Interface:

  • User can deposit funds
  • User can withdraw funds
  • Visual representation of the asset allocations

Tech Stack

  • Chainlink Functions: Fetching the asset prices and sending them to the quantum oracle and receiving the results
  • Chainlink Datafeed: Fetching the prices of each asset real-time on the smart contract
  • Chainlink Automation: Rebalancing the allocation of the assets every day
  • Polygon: deployed on Polygon mainnet
  • Quickswap: Exchange for rebalancing the assets
  • Qiskit: Quantum computing software development kit for running the quantum algorithm

Quantum Algorithm

The algorithm is based on the Qiskit Portfolio Diversification algorithm: https://qiskit.org/ecosystem/finance/tutorials/02_portfolio_diversification.html

We modified the algorithm to fit the needs of our quantum hedge fund.


Technical Links

Presentation Links

Getting Started

Engaging with Quantum Hedge Fund requires familiarity with Solidity, Ethereum blockchain, and smart contract development.


  • Node.js and npm
  • Hardhat


  1. Clone the repository:

    git clone https://github.com/Quantum-Hedge-Funds/smart-contracts.git
  2. Install the required packages:

    npm install
  3. Compile the smart contracts with Hardhat:

    npx hardhat compile
  4. Deploy the contracts:

    npx hardhat run scripts/deploy.ts --network polygonMainnet


Run the test suite to ensure everything functions as expected:

npx hardhat test


This project is in the developmental phase. Thoroughly review the code before deploying it in production environments.


This project is licensed under the MIT License.


You can contact us at contact@yashgoyal.dev, contact@jessicapointing.com


Built With

Share this project: