Package: graphiq
GraphiQ is a Python library for the simulation, design, and optimization of quantum photonic circuits.GraphiQis an open-source framework for designing photonic graph state generation schemes.
Photonic graph states are an important resource for many quantum information processing tasks including quantum computing
and quantum communication.FeaturesDiversebackendsfor the simulation of noisy
quantum circuits comprised of hundreds of qubits.Algorithms for the inverse design and optimization of circuits that output a desired quantum state.Circuits support emitter and photonic qubits, as a basis for simulations of realistic near-term quantum photonic
devices.Library of models for the study ofnoiseand
optical loss.InstallationGraphiQ can be installed from PyPI,pip install graphiqThis package is built on top of the standard Python scientific computing ecosystem, includingnetworkx,numpy,matplotlib, andscipy.Getting startedGraphiQ can simulate quantum circuits using the density matrix and stabilizer formalisms,
and can identify circuits which generate a target quantum state.
In this example, we simulate a Bell state circuit and find a generating circuit for a 3-qubit linear cluster state.importgraphiqasgqfromgraphiq.benchmarks.circuitsimportbell_state_circuitimportnetworkxasnx#%%circuit,_=bell_state_circuit()backend=gq.StabilizerCompiler()state=backend.compile(circuit)print(state)#%%target=gq.QuantumState(data=nx.Graph([(1,2),(2,3)]),rep_type="g")metric=gq.Infidelity(target=target)solver=gq.TimeReversedSolver(compiler=backend,metric=metric,target=target)#%%solver.solve()score,circuit=solver.resultcircuit.draw_circuit()Overviewbackends- simulate a quantum circuit using
different state representations, including, the density matrix, stabilizer, and graph formalisms.noise- models for the study of noise and
optical loss in realistic quantum devices.solvers- design and optimization algorithms that identifying
circuits satisfying which generate target quantum states.benchmarks- a suite of automated tools for
benchmarking solvers and compilers, scaled to run on high-performance computing clusters.visualizers- functions for plotting
backends and quantum circuits.tests- automated code testing frameworkDocumentationDocumentation can be foundhere.
See also "GraphiQ: Quantum circuit design for photonic graph states" (https://arxiv.org/abs/2402.09285),
and
"Optimization of deterministic photonic graph state generation via local operations" (https://arxiv.org/abs/2401.00635)AcknowledgementVersion 0.1.0 was jointly developed byQuantum Bridge Technologies, Inc. ("Quantum Bridge")andKi3 Photonics Technologiesunder the US Air Force Office of Scientific Research (AFOSR) Grant FA9550-22-1-0062.ContributingQuantum Bridge continues to maintain and develop new versions of GraphiQ. Collaborations from the community are encouraged and welcomed.LicenseGraphiQ is licensed under an Apache License Version 2.0.Citation@article{
  title={GraphiQ: Quantum circuit design for photonic graph states}, 
  author={Jie Lin and Benjamin MacLellan and Sobhan Ghanbari and Julie Belleville and Khuong Tran and Luc Robichaud and Roger G. Melko and Hoi-Kwong Lo and Piotr Roztocki},
  year={2024},
  eprint={2402.09285},
  archivePrefix={arXiv},
  primaryClass={quant-ph}
}