Web interface for Public Quantum Network (PQN) nodes
An interactive web interface designed for the general public to interact with quantum networks.
PQN web interface for public interaction with a quantum network
Note
For complete project information, architecture details, and backend setup, see the pqn-stack repository.
- Node.js 18 or higher and npm package manager (to install please follow the instructions in this link)
- A PQN Node API (see pqn-stack)
If you've just installed the PQN Node API, make sure not to be in the pqn-stack directory. A convenient place to put the front-end is in the same place you cloned pqn-stack.
-
Clone the repository
git clone https://github.com/PublicQuantumNetwork/pqn-gui.git cd pqn-gui -
Install dependencies
npm install
-
Run the PQN Node API.
-
Open a new terminal window to run the front-end. It can be run in development mode, which updates to live changes to code:
npm run dev
or in production mode, which is faster than development mode:
npm run build npm run start
Open http://localhost:3000 in your browser to see the interface.
To add additional nodes, follow the instructions for back-end and front-end installation. The PQN Node is built with the expectations that it has another Node to be its follower and vice-versa. At the moment we are not supporting a third node.
To configure the API endpoints, create a .env.local file in the root of the project:
NEXT_PUBLIC_API_ADDRESS=127.0.0.1:8000 # Address of the PQN Node running
NEXT_PUBLIC_TIMETAGGER_ADDRESS=127.0.0.1:8000 # Address of the PQN Node with a timetagger; the protocol will use the timetagger in this Node.
NEXT_PUBLIC_SURVEY_FORM_URL=https://surveys.illinois.edu/sec/1160990162 # URL for the survey form displayed after experiments (optional).Replace the addresses with your actual Node API endpoints if they differ from the defaults.
Note
The follower node address is configured on the backend in config.toml (follower_node_address), not in the frontend environment. The GUI fetches it from GET /node/config when needed.
- pqn-stack - Backend software stack and complete project documentation
- Public Quantum Network - Learn more about the PQN project
Feel free to contact the PQN team at publicquantumnetwork@gmail.com.