{"id":18397765,"url":"https://github.com/quantumbfs/yaopastaq.jl","last_synced_at":"2025-08-12T10:11:43.640Z","repository":{"id":43856862,"uuid":"368691957","full_name":"QuantumBFS/YaoPastaQ.jl","owner":"QuantumBFS","description":"YaoPastaQ integration","archived":false,"fork":false,"pushed_at":"2022-02-16T00:26:11.000Z","size":121,"stargazers_count":3,"open_issues_count":4,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-30T22:27:58.161Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QuantumBFS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-18T23:32:52.000Z","updated_at":"2022-01-31T17:52:53.000Z","dependencies_parsed_at":"2022-09-11T10:22:00.245Z","dependency_job_id":null,"html_url":"https://github.com/QuantumBFS/YaoPastaQ.jl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/QuantumBFS/YaoPastaQ.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantumBFS%2FYaoPastaQ.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantumBFS%2FYaoPastaQ.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantumBFS%2FYaoPastaQ.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantumBFS%2FYaoPastaQ.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QuantumBFS","download_url":"https://codeload.github.com/QuantumBFS/YaoPastaQ.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuantumBFS%2FYaoPastaQ.jl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270041239,"owners_count":24516799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T02:18:36.170Z","updated_at":"2025-08-12T10:11:43.585Z","avatar_url":"https://github.com/QuantumBFS.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YaoPastaQ\n\n[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://QuantumBFS.github.io/YaoPastaQ.jl/stable)\n[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://QuantumBFS.github.io/YaoPastaQ.jl/dev)\n[![Build Status](https://github.com/QuantumBFS/YaoPastaQ.jl/workflows/CI/badge.svg)](https://github.com/QuantumBFS/YaoPastaQ.jl/actions)\n[![Coverage](https://codecov.io/gh/QuantumBFS/YaoPastaQ.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/QuantumBFS/YaoPastaQ.jl)\n\n[Yao](https://github.com/QuantumBFS/Yao.jl) and [PastaQ](https://github.com/GTorlai/PastaQ.jl) integration library.\n\n## Installation\n\n\u003cp\u003e\nYaoPastaQ is a \u0026nbsp;\n    \u003ca href=\"https://julialang.org\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/JuliaLang/julia-logo-graphics/master/images/julia.ico\" width=\"16em\"\u003e\n        Julia Language\n    \u003c/a\u003e\n    \u0026nbsp; package. To install YaoPastaQ,\n    please \u003ca href=\"https://docs.julialang.org/en/v1/manual/getting-started/\"\u003eopen\n    Julia's interactive session (known as REPL)\u003c/a\u003e and press \u003ckbd\u003e]\u003c/kbd\u003e key in the REPL to use the package mode, then type the following command\n\u003c/p\u003e\n\n```julia\npkg\u003e add https://github.com/QuantumBFS/YaoPastaQ.jl\n```\n## Usage\n\nThis package provides a PastaQ register called `PastaQReg` and some functions to work with it. \n\nYou can create a PastaQReg using\n\n```julia\njulia\u003e using YaoPastaQ, Yao\n\njulia\u003e p = chain(3, put(1=\u003eX), repeat(H,1:3))\nnqubits: 3\nchain\n├─ put on (1)\n│  └─ X\n└─ repeat on (1, 2, 3)\n   └─ H\n\njulia\u003e apply!(create_reg(3), p)\nPastaQReg{ITensors.MPS}\n    active qubits: 3/3\n```\n\nYou can also use the `genlist` function, which can convert a block in Yao to a list which can be read and used by the functions of [PastaQ](https://github.com/GTorlai/PastaQ.jl)\n```julia\njulia\u003e list = genlist(chain(3, put(1=\u003eX), repeat(Rz(π/3),1:3)))\n4-element Vector{Any}:\n (\"X\", 1)\n (\"Rz\", 1, (ϕ = 1.0471975511965976,))\n (\"Rz\", 2, (ϕ = 1.0471975511965976,))\n (\"Rz\", 3, (ϕ = 1.0471975511965976,))\n```\n\n## License\n\nMIT License\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantumbfs%2Fyaopastaq.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquantumbfs%2Fyaopastaq.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantumbfs%2Fyaopastaq.jl/lists"}