text stringlengths 4 4.46M | id stringlengths 13 126 | metadata dict | __index_level_0__ int64 0 415 |
|---|---|---|---|
-- mods/default/item_entity.lua
local builtin_item = minetest.registered_entities["__builtin:item"]
local item = {
set_item = function(self, itemstring)
builtin_item.set_item(self, itemstring)
local stack = ItemStack(itemstring)
local itemdef = minetest.registered_items[stack:get_name()]
if itemdef and item... | QiskitBlocks/qiskitblocks/mods/default/item_entity.lua/0 | {
"file_path": "QiskitBlocks/qiskitblocks/mods/default/item_entity.lua",
"repo_id": "QiskitBlocks",
"token_count": 920
} | 0 |
-- mods/default/tools.lua
-- The hand
minetest.register_item(":", {
type = "none",
wield_image = "wieldhand.png",
wield_scale = {x=1,y=1,z=2.5},
tool_capabilities = {
full_punch_interval = 0.9,
max_drop_level = 0,
groupcaps = {
crumbly = {times={[2]=3.00, [3]=0.70}, uses=0, maxlevel=1},
snappy = {times... | QiskitBlocks/qiskitblocks/mods/default/tools.lua/0 | {
"file_path": "QiskitBlocks/qiskitblocks/mods/default/tools.lua",
"repo_id": "QiskitBlocks",
"token_count": 4671
} | 1 |
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-29 09:13+0200\n"
"PO-Revision... | QiskitBlocks/qiskitblocks/mods/mobs_redo/locale/fr.po/0 | {
"file_path": "QiskitBlocks/qiskitblocks/mods/mobs_redo/locale/fr.po",
"repo_id": "QiskitBlocks",
"token_count": 1209
} | 2 |
local S = mobs.intllib
-- mob spawner
local spawner_default = "mobs_animal:pumba 10 15 0 0"
minetest.register_node("mobs:spawner", {
tiles = {"mob_spawner.png"},
drawtype = "glasslike",
paramtype = "light",
walkable = true,
description = S("Mob Spawner"),
groups = {cracky = 1},
on_construct = function(pos)
... | QiskitBlocks/qiskitblocks/mods/mobs_redo/spawner.lua/0 | {
"file_path": "QiskitBlocks/qiskitblocks/mods/mobs_redo/spawner.lua",
"repo_id": "QiskitBlocks",
"token_count": 1707
} | 3 |
--[[
Copyright 2019 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | QiskitBlocks/qiskitblocks/mods/q_command/q_portal_room.lua/0 | {
"file_path": "QiskitBlocks/qiskitblocks/mods/q_command/q_portal_room.lua",
"repo_id": "QiskitBlocks",
"token_count": 505
} | 4 |
local dyes = {
{"white", "White"},
{"grey", "Grey"},
{"black", "Black"},
{"red", "Red"},
{"yellow", "Yellow"},
{"green", "Green"},
{"cyan", "Cyan"},
{"blue", "Blue"},
{"magenta", "Magenta"},
{"orange", "Orange"},
{"violet", "Violet"},
{"brown", "Br... | QiskitBlocks/qiskitblocks/mods/wool/init.lua/0 | {
"file_path": "QiskitBlocks/qiskitblocks/mods/wool/init.lua",
"repo_id": "QiskitBlocks",
"token_count": 471
} | 5 |
<jupyter_start><jupyter_text>IBM Q setupThis tutorial will walk you through the configuration for your IBM Q Experience account so that, in the future, you are able to run your Quantum Programs in both online simulators as well as real Quantum Computers.We assume you have installed Qiskit if not please look at [qiskit.... | Teach-Me-Quantum/Week 1 - Quantum Tools/exercises/IBMQ_setup.ipynb/0 | {
"file_path": "Teach-Me-Quantum/Week 1 - Quantum Tools/exercises/IBMQ_setup.ipynb",
"repo_id": "Teach-Me-Quantum",
"token_count": 748
} | 6 |
\documentclass[aspectratio=43]{beamer}
\usepackage[utf8]{inputenc}
%%%%%%%%%%%%%%%%%%%%%%%% THEME
\usetheme{material}
\useLightTheme
\usePrimaryDeepOrange
\useAccentCyan
\usepackage{macros} % must come after theme
\title{\qis}
\keywords{\qis}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{T... | Teach-Me-Quantum/Week 2 - Quantum Information Science/latex/main.tex/0 | {
"file_path": "Teach-Me-Quantum/Week 2 - Quantum Information Science/latex/main.tex",
"repo_id": "Teach-Me-Quantum",
"token_count": 5819
} | 7 |
\documentclass[aspectratio=43]{beamer}
\usepackage[utf8]{inputenc}
%%%%%%%%%%%%%%%%%%%%%%%% THEME
\usetheme{material}
\useLightTheme
\usePrimaryBlueGrey
\useAccentDeepPurple
\usepackage{macros} % must come after theme
\title{High-Level Quantum Programming}
\keywords{\qk, \q Programming}
\begin{document}
\begin{fra... | Teach-Me-Quantum/Week 8 - High Level Quantum Programming/latex/main.tex/0 | {
"file_path": "Teach-Me-Quantum/Week 8 - High Level Quantum Programming/latex/main.tex",
"repo_id": "Teach-Me-Quantum",
"token_count": 4195
} | 8 |
[run]
omit =
*/tests/*
mitiq/_about.py
[report]
# Regexes for lines to exclude from consideration
exclude_lines =
pragma: no cover
# Don't complain if tests don't hit defensive assertion code:
raise NotImplementedError
| mitiq/.coveragerc/0 | {
"file_path": "mitiq/.coveragerc",
"repo_id": "mitiq",
"token_count": 84
} | 9 |
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Pream... | mitiq/LICENSE/0 | {
"file_path": "mitiq/LICENSE",
"repo_id": "mitiq",
"token_count": 8075
} | 10 |
```{include} ../../CONTRIBUTING.md
:relative-docs: docs/
:relative-images:
``` | mitiq/docs/source/contributing.md/0 | {
"file_path": "mitiq/docs/source/contributing.md",
"repo_id": "mitiq",
"token_count": 32
} | 11 |
---
jupytext:
text_representation:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
kernelspec:
display_name: Python 3 (ipykernel)
language: python
name: python3
---
```{tags} qiskit, zne, intermediate
```
# ZNE with Qiskit: Layerwise folding
This tutorial shows... | mitiq/docs/source/examples/layerwise-folding.md/0 | {
"file_path": "mitiq/docs/source/examples/layerwise-folding.md",
"repo_id": "mitiq",
"token_count": 3319
} | 12 |
<jupyter_start><jupyter_text>Variational Quantum Eigensolver improved with Zero Noise Extrapolation In this example we investigate how Zero Noise Extrapolation (ZNE) can improve convergence when applied to a variational problem. ZNE works by computing the observable of interest at increased noise levels, i.e. beyond th... | mitiq/docs/source/examples/vqe-pyquil-demo.ipynb/0 | {
"file_path": "mitiq/docs/source/examples/vqe-pyquil-demo.ipynb",
"repo_id": "mitiq",
"token_count": 4942
} | 13 |
# Digital Dynamical Decoupling
Digital Dynamical Decoupling (DDD) is an error mitigation technique in which
sequences of gates are applied to slack windows, i.e. single-qubit idle
windows, in a quantum circuit. Such sequences of gates can reduce the coupling
between the qubits and the environment, mitigating the effec... | mitiq/docs/source/guide/ddd.md/0 | {
"file_path": "mitiq/docs/source/guide/ddd.md",
"repo_id": "mitiq",
"token_count": 360
} | 14 |
---
jupytext:
text_representation:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.11.1
kernelspec:
display_name: Python 3
language: python
name: python3
---
# What happens when I use PT?
```{admonition} Warning:
Pauli Twirling in Mitiq is still under construction. Th... | mitiq/docs/source/guide/pt-4-low-level.md/0 | {
"file_path": "mitiq/docs/source/guide/pt-4-low-level.md",
"repo_id": "mitiq",
"token_count": 1747
} | 15 |
```{toctree}
---
maxdepth: 2
caption: Contents
hidden: true
---
guide/guide.md
examples/examples.md
apidoc.md
toc_contributing.md
changelog.md
bibliography.md
```
```{include} ./readme.md
```
| mitiq/docs/source/index.md/0 | {
"file_path": "mitiq/docs/source/index.md",
"repo_id": "mitiq",
"token_count": 84
} | 16 |
# Copyright (C) Unitary Fund
#
# This source code is licensed under the GPL license (v3) found in the
# LICENSE file in the root directory of this source tree.
"""Functions for creating circuits of the form used in quantum
volume experiments as defined in https://arxiv.org/abs/1811.12926.
Useful overview of quantum v... | mitiq/mitiq/benchmarks/quantum_volume_circuits.py/0 | {
"file_path": "mitiq/mitiq/benchmarks/quantum_volume_circuits.py",
"repo_id": "mitiq",
"token_count": 1097
} | 17 |
# Copyright (C) Unitary Fund
#
# This source code is licensed under the GPL license (v3) found in the
# LICENSE file in the root directory of this source tree.
from dataclasses import asdict, dataclass
from enum import Enum, auto
from functools import partial
from typing import Any, Callable, Dict, List, cast
import ... | mitiq/mitiq/calibration/settings.py/0 | {
"file_path": "mitiq/mitiq/calibration/settings.py",
"repo_id": "mitiq",
"token_count": 8815
} | 18 |
# Copyright (C) Unitary Fund
#
# This source code is licensed under the GPL license (v3) found in the
# LICENSE file in the root directory of this source tree.
"""Built-in rules determining what DDD sequence should be applied in a given slack window."""
from mitiq.ddd.rules.rules import xx, xyxy, yy, general_rule, rep... | mitiq/mitiq/ddd/rules/__init__.py/0 | {
"file_path": "mitiq/mitiq/ddd/rules/__init__.py",
"repo_id": "mitiq",
"token_count": 94
} | 19 |
# Copyright (C) Unitary Fund
#
# This source code is licensed under the GPL license (v3) found in the
# LICENSE file in the root directory of this source tree.
from mitiq.interface.mitiq_pennylane.conversions import (
from_pennylane,
to_pennylane,
UnsupportedQuantumTapeError,
)
| mitiq/mitiq/interface/mitiq_pennylane/__init__.py/0 | {
"file_path": "mitiq/mitiq/interface/mitiq_pennylane/__init__.py",
"repo_id": "mitiq",
"token_count": 100
} | 20 |
# Copyright (C) Unitary Fund
#
# This source code is licensed under the GPL license (v3) found in the
# LICENSE file in the root directory of this source tree.
"""Unit tests for qiskit executors (qiskit_utils.py)."""
import numpy as np
import pytest
from qiskit import QuantumCircuit
from qiskit_ibm_runtime.fake_provi... | mitiq/mitiq/interface/mitiq_qiskit/tests/test_qiskit_utils.py/0 | {
"file_path": "mitiq/mitiq/interface/mitiq_qiskit/tests/test_qiskit_utils.py",
"repo_id": "mitiq",
"token_count": 3526
} | 21 |
# Copyright (C) Unitary Fund
#
# This source code is licensed under the GPL license (v3) found in the
# LICENSE file in the root directory of this source tree.
from mitiq.pec.representations.depolarizing import (
represent_operation_with_global_depolarizing_noise,
represent_operation_with_local_depolarizing_n... | mitiq/mitiq/pec/representations/__init__.py/0 | {
"file_path": "mitiq/mitiq/pec/representations/__init__.py",
"repo_id": "mitiq",
"token_count": 382
} | 22 |
# Copyright (C) Unitary Fund
#
# This source code is licensed under the GPL license (v3) found in the
# LICENSE file in the root directory of this source tree.
from itertools import product
import numpy as np
from cirq import (
CNOT,
CZ,
AmplitudeDampingChannel,
Circuit,
DepolarizingChannel,
H... | mitiq/mitiq/pec/representations/tests/test_optimal.py/0 | {
"file_path": "mitiq/mitiq/pec/representations/tests/test_optimal.py",
"repo_id": "mitiq",
"token_count": 5962
} | 23 |
# Copyright (C) Unitary Fund
#
# This source code is licensed under the GPL license (v3) found in the
# LICENSE file in the root directory of this source tree.
"""Run experiments without error mitigation."""
from typing import Callable, Optional, Union
from mitiq import QPROGRAM, Executor, Observable, QuantumResult
... | mitiq/mitiq/raw/raw.py/0 | {
"file_path": "mitiq/mitiq/raw/raw.py",
"repo_id": "mitiq",
"token_count": 427
} | 24 |
# Copyright (C) Unitary Fund
#
# This source code is licensed under the GPL license (v3) found in the
# LICENSE file in the root directory of this source tree.
"""Test classical shadow estimation process."""
from numbers import Number
import cirq
import mitiq
from mitiq import MeasurementResult
from mitiq.interface... | mitiq/mitiq/shadows/tests/test_shadows.py/0 | {
"file_path": "mitiq/mitiq/shadows/tests/test_shadows.py",
"repo_id": "mitiq",
"token_count": 1349
} | 25 |
# Copyright (C) Unitary Fund
#
# This source code is licensed under the GPL license (v3) found in the
# LICENSE file in the root directory of this source tree.
import copy
from typing import Callable, List, Optional, cast
import numpy as np
from cirq import (
Circuit,
CXPowGate,
CZPowGate,
EigenGate,
... | mitiq/mitiq/zne/scaling/parameter.py/0 | {
"file_path": "mitiq/mitiq/zne/scaling/parameter.py",
"repo_id": "mitiq",
"token_count": 1883
} | 26 |
# Copyright 2021-2024 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane-qiskit/tests/test_apply.py/0 | {
"file_path": "pennylane-qiskit/tests/test_apply.py",
"repo_id": "pennylane-qiskit",
"token_count": 5843
} | 27 |
ignore:
- "pennylane/devices/tests/*"
- "pennylane/data/base/_lazy_modules.py"
- "pennylane/logging/*"
codecov:
notify:
after_n_builds: 1
comment:
after_n_builds: 1
coverage:
status:
project:
default:
threshold: 0.02%
| pennylane/codecov.yml/0 | {
"file_path": "pennylane/codecov.yml",
"repo_id": "pennylane",
"token_count": 122
} | 28 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/doc/_static/draw_mpl/draw_mpl_examples.py/0 | {
"file_path": "pennylane/doc/_static/draw_mpl/draw_mpl_examples.py",
"repo_id": "pennylane",
"token_count": 2176
} | 29 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 401.14999 49.439999"
version="1.1"
id="svg52"
sodipodi:docname="pennylane.svg"
width="140"
height="17.25"
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns... | pennylane/doc/_static/pennylane.svg/0 | {
"file_path": "pennylane/doc/_static/pennylane.svg",
"repo_id": "pennylane",
"token_count": 4381
} | 30 |
\documentclass[amsmath,amssymb,aps,pra,10pt,twocolumn,groupedaddress]{revtex4-1}
\usepackage{graphicx, epsf}
\usepackage[T1]{fontenc} % fix quotation marks in code blocks
\usepackage{caption} % allows some extra formatting for captions
\usepackage[bitstream-charter]{mathdesign}
\graphicspath{{figures/}}
\usepackage{ti... | pennylane/doc/_static/qcircuit/main.tex/0 | {
"file_path": "pennylane/doc/_static/qcircuit/main.tex",
"repo_id": "pennylane",
"token_count": 509
} | 31 |
\documentclass[border=6pt]{standalone}
\usepackage{qcircuit}
\begin{document}
\Qcircuit @C=1em @R=.7em {
& \gate{H} & \gate{X} & \qw & \ctrl{1} & \qw & \gate{X} & \gate{H} & \qw \\
& \gate{H} & \gate{X} & \qw & \ctrl{1} & \qw & \gate{X} & \gate{H} & \qw \\
& \gate{H} & \gate{X} & \gate{H} & \targ & \gate{H} & \gat... | pennylane/doc/_static/templates/subroutines/grover2.tex/0 | {
"file_path": "pennylane/doc/_static/templates/subroutines/grover2.tex",
"repo_id": "pennylane",
"token_count": 189
} | 32 |
\documentclass[border=0.2cm]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{outlines}
\usepackage{braket}
\usepackage[dvipsnames]{xcolor}
\definecolor{templategreen}{RGB}{216, 234, 210}
\usepackage{tikz}
\usetikzlibrary{quantikz}
\usepackage{braket}
\begin{document}
\begin{quantikz}
\qw... | pennylane/doc/_static/templates/subroutines/qsvt.tex/0 | {
"file_path": "pennylane/doc/_static/templates/subroutines/qsvt.tex",
"repo_id": "pennylane",
"token_count": 385
} | 33 |
.. role:: html(raw)
:format: html
qml.debugging
=============
This module contains functionality for debugging quantum programs on simulator devices.
:html:`<div class="summary-table">`
.. autosummary::
:nosignatures:
~pennylane.breakpoint
~pennylane.debug_expval
~pennylane.debug_probs
~penn... | pennylane/doc/code/qml_debugging.rst/0 | {
"file_path": "pennylane/doc/code/qml_debugging.rst",
"repo_id": "pennylane",
"token_count": 3152
} | 34 |
qml.pytrees
===========
.. currentmodule:: pennylane.pytrees
.. warning::
Unless you are a PennyLane or plugin developer, you likely do not need
to use these functions.
.. automodapi:: pennylane.pytrees
:no-heading:
:include-all-objects:
| pennylane/doc/code/qml_pytrees.rst/0 | {
"file_path": "pennylane/doc/code/qml_pytrees.rst",
"repo_id": "pennylane",
"token_count": 91
} | 35 |
.. _deprecations:
Deprecations
============
All PennyLane deprecations will raise a ``qml.PennyLaneDeprecationWarning``. Pending and completed
deprecations are listed below.
Pending deprecations
--------------------
* All of the legacy devices (any with the name ``default.qubit.{autograd,torch,tf,jax,legacy}``) are... | pennylane/doc/development/deprecations.rst/0 | {
"file_path": "pennylane/doc/development/deprecations.rst",
"repo_id": "pennylane",
"token_count": 7935
} | 36 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="238.31119mm"
height="46.129436mm"
viewBox="0 0 238.31119 46.129437"
version="1.1"
id="svg5"
inkscape:version="1.1.1 (1:1.1+202109281949+c3084ef5ed)"
sodipodi:docname="pl_wor... | pennylane/doc/development/guide/pl_workflow.svg/0 | {
"file_path": "pennylane/doc/development/guide/pl_workflow.svg",
"repo_id": "pennylane",
"token_count": 26830
} | 37 |
.. role:: html(raw)
:format: html
.. _intro_interfaces:
Gradients and training
======================
PennyLane offers seamless integration between classical and quantum computations. Code up quantum
circuits in PennyLane, compute `gradients of quantum circuits
<https://pennylane.ai/qml/glossary/quantum_gradient... | pennylane/doc/introduction/interfaces.rst/0 | {
"file_path": "pennylane/doc/introduction/interfaces.rst",
"repo_id": "pennylane",
"token_count": 13676
} | 38 |
:orphan:
# Release 0.13.0
<h3>New features since last release</h3>
<h4>Automatically optimize the number of measurements</h4>
* QNodes in tape mode now support returning observables on the same wire whenever the observables are
qubit-wise commuting Pauli words. Qubit-wise commuting observables can be evaluated wi... | pennylane/doc/releases/changelog-0.13.0.md/0 | {
"file_path": "pennylane/doc/releases/changelog-0.13.0.md",
"repo_id": "pennylane",
"token_count": 5985
} | 39 |
:orphan:
# Release 0.23.0
<h3>New features since last release</h3>
<h4> More powerful circuit cutting ✂️</h4>
* Quantum circuit cutting (running `N`-wire circuits on devices with fewer than
`N` wires) is now supported for QNodes of finite-shots using the new
`@qml.cut_circuit_mc` transform.
[(#2313)](https://... | pennylane/doc/releases/changelog-0.23.0.md/0 | {
"file_path": "pennylane/doc/releases/changelog-0.23.0.md",
"repo_id": "pennylane",
"token_count": 10196
} | 40 |
:orphan:
# Release 0.33.1
<h3>Bug fixes 🐛</h3>
* Fix gradient performance regression due to expansion of VJP products.
[(#4806)](https://github.com/PennyLaneAI/pennylane/pull/4806)
* `qml.defer_measurements` now correctly transforms circuits when terminal measurements include wires
used in mid-circuit measurem... | pennylane/doc/releases/changelog-0.33.1.md/0 | {
"file_path": "pennylane/doc/releases/changelog-0.33.1.md",
"repo_id": "pennylane",
"token_count": 313
} | 41 |
# Copyright 2018-2024 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/boolean_fn.py/0 | {
"file_path": "pennylane/pennylane/boolean_fn.py",
"repo_id": "pennylane",
"token_count": 2764
} | 42 |
# Copyright 2018-2023 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/data/attributes/__init__.py/0 | {
"file_path": "pennylane/pennylane/data/attributes/__init__.py",
"repo_id": "pennylane",
"token_count": 432
} | 43 |
"""Contains a lazy-loaded interface to the HDF5 module. For internal use only."""
import importlib
from collections.abc import Callable
from types import ModuleType
from typing import Any, Optional, Union
_MISSING_MODULES_EXC = ImportError(
"This feature requires the 'aiohttp', 'h5py' and 'fsspec' packages. "
... | pennylane/pennylane/data/base/_lazy_modules.py/0 | {
"file_path": "pennylane/pennylane/data/base/_lazy_modules.py",
"repo_id": "pennylane",
"token_count": 1306
} | 44 |
# Copyright 2018-2023 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/devices/__init__.py/0 | {
"file_path": "pennylane/pennylane/devices/__init__.py",
"repo_id": "pennylane",
"token_count": 1720
} | 45 |
# Copyright 2018-2023 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/devices/device_api.py/0 | {
"file_path": "pennylane/pennylane/devices/device_api.py",
"repo_id": "pennylane",
"token_count": 11303
} | 46 |
# Copyright 2018-2023 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/devices/qubit/simulate.py/0 | {
"file_path": "pennylane/pennylane/devices/qubit/simulate.py",
"repo_id": "pennylane",
"token_count": 16305
} | 47 |
# Copyright 2024 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agre... | pennylane/pennylane/devices/tests/test_gradients_tf.py/0 | {
"file_path": "pennylane/pennylane/devices/tests/test_gradients_tf.py",
"repo_id": "pennylane",
"token_count": 4133
} | 48 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/drawer/utils.py/0 | {
"file_path": "pennylane/pennylane/drawer/utils.py",
"repo_id": "pennylane",
"token_count": 3290
} | 49 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/gradients/general_shift_rules.py/0 | {
"file_path": "pennylane/pennylane/gradients/general_shift_rules.py",
"repo_id": "pennylane",
"token_count": 8194
} | 50 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/kernels/postprocessing.py/0 | {
"file_path": "pennylane/pennylane/kernels/postprocessing.py",
"repo_id": "pennylane",
"token_count": 4603
} | 51 |
# Copyright 2018-2022 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/math/quantum.py/0 | {
"file_path": "pennylane/pennylane/math/quantum.py",
"repo_id": "pennylane",
"token_count": 21396
} | 52 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/measurements/vn_entropy.py/0 | {
"file_path": "pennylane/pennylane/measurements/vn_entropy.py",
"repo_id": "pennylane",
"token_count": 1498
} | 53 |
# Copyright 2018-2023 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/ops/functions/bind_new_parameters.py/0 | {
"file_path": "pennylane/pennylane/ops/functions/bind_new_parameters.py",
"repo_id": "pennylane",
"token_count": 3350
} | 54 |
# Copyright 2018-2022 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/ops/op_math/__init__.py/0 | {
"file_path": "pennylane/pennylane/ops/op_math/__init__.py",
"repo_id": "pennylane",
"token_count": 1145
} | 55 |
# Copyright 2018-2022 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/ops/op_math/sprod.py/0 | {
"file_path": "pennylane/pennylane/ops/op_math/sprod.py",
"repo_id": "pennylane",
"token_count": 4974
} | 56 |
# Copyright 2018-2024 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/ops/qutrit/channel.py/0 | {
"file_path": "pennylane/pennylane/ops/qutrit/channel.py",
"repo_id": "pennylane",
"token_count": 10893
} | 57 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/optimize/rms_prop.py/0 | {
"file_path": "pennylane/pennylane/optimize/rms_prop.py",
"repo_id": "pennylane",
"token_count": 1368
} | 58 |
# Copyright 2018-2023 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/pauli/pauli_interface.py/0 | {
"file_path": "pennylane/pennylane/pauli/pauli_interface.py",
"repo_id": "pennylane",
"token_count": 1140
} | 59 |
# Copyright 2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agre... | pennylane/pennylane/qaoa/cycle.py/0 | {
"file_path": "pennylane/pennylane/qaoa/cycle.py",
"repo_id": "pennylane",
"token_count": 10439
} | 60 |
# Copyright 2018-2022 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/qchem/number.py/0 | {
"file_path": "pennylane/pennylane/qchem/number.py",
"repo_id": "pennylane",
"token_count": 753
} | 61 |
# Copyright 2018-2020 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/qinfo/transforms.py/0 | {
"file_path": "pennylane/pennylane/qinfo/transforms.py",
"repo_id": "pennylane",
"token_count": 18848
} | 62 |
# Copyright 2022 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agre... | pennylane/pennylane/shadows/__init__.py/0 | {
"file_path": "pennylane/pennylane/shadows/__init__.py",
"repo_id": "pennylane",
"token_count": 1391
} | 63 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/templates/embeddings/displacement.py/0 | {
"file_path": "pennylane/pennylane/templates/embeddings/displacement.py",
"repo_id": "pennylane",
"token_count": 2438
} | 64 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/templates/state_preparations/basis.py/0 | {
"file_path": "pennylane/pennylane/templates/state_preparations/basis.py",
"repo_id": "pennylane",
"token_count": 1974
} | 65 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/templates/subroutines/fermionic_single_excitation.py/0 | {
"file_path": "pennylane/pennylane/templates/subroutines/fermionic_single_excitation.py",
"repo_id": "pennylane",
"token_count": 3258
} | 66 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/templates/subroutines/qpe.py/0 | {
"file_path": "pennylane/pennylane/templates/subroutines/qpe.py",
"repo_id": "pennylane",
"token_count": 4620
} | 67 |
# Copyright 2018-2024 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or ... | pennylane/pennylane/transforms/add_noise.py/0 | {
"file_path": "pennylane/pennylane/transforms/add_noise.py",
"repo_id": "pennylane",
"token_count": 4442
} | 68 |
# Copyright 2018-2024 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/transforms/dynamic_one_shot.py/0 | {
"file_path": "pennylane/pennylane/transforms/dynamic_one_shot.py",
"repo_id": "pennylane",
"token_count": 8120
} | 69 |
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the ... | pennylane/pennylane/transforms/sign_expand/sign_expand.py/0 | {
"file_path": "pennylane/pennylane/transforms/sign_expand/sign_expand.py",
"repo_id": "pennylane",
"token_count": 5507
} | 70 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/pennylane/workflow/interfaces/autograd.py/0 | {
"file_path": "pennylane/pennylane/workflow/interfaces/autograd.py",
"repo_id": "pennylane",
"token_count": 2672
} | 71 |
# Copyright 2018-2024 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/capture/test_capture_cond.py/0 | {
"file_path": "pennylane/tests/capture/test_capture_cond.py",
"repo_id": "pennylane",
"token_count": 13914
} | 72 |
# Copyright 2018-2023 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/data/attributes/operator/test__wires.py/0 | {
"file_path": "pennylane/tests/data/attributes/operator/test__wires.py",
"repo_id": "pennylane",
"token_count": 1473
} | 73 |
# Copyright 2018-2023 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/data/base/test_typing_util.py/0 | {
"file_path": "pennylane/tests/data/base/test_typing_util.py",
"repo_id": "pennylane",
"token_count": 912
} | 74 |
# Copyright 2024 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agre... | pennylane/tests/devices/modifiers/test_all_modifiers.py/0 | {
"file_path": "pennylane/tests/devices/modifiers/test_all_modifiers.py",
"repo_id": "pennylane",
"token_count": 1469
} | 75 |
# Copyright 2018-2024 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/devices/qutrit_mixed/test_qutrit_mixed_tracking.py/0 | {
"file_path": "pennylane/tests/devices/qutrit_mixed/test_qutrit_mixed_tracking.py",
"repo_id": "pennylane",
"token_count": 3845
} | 76 |
# Copyright 2018-2020 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/devices/test_device.py/0 | {
"file_path": "pennylane/tests/devices/test_device.py",
"repo_id": "pennylane",
"token_count": 20487
} | 77 |
"""Unit testing of conversion functions for parity transform"""
import pytest
import pennylane as qml
from pennylane.fermi.conversion import bravyi_kitaev
from pennylane.fermi.fermionic import FermiSentence, FermiWord
from pennylane.ops import Identity, SProd
from pennylane.pauli import PauliSentence, PauliWord
from ... | pennylane/tests/fermi/test_bravyi_kitaev.py/0 | {
"file_path": "pennylane/tests/fermi/test_bravyi_kitaev.py",
"repo_id": "pennylane",
"token_count": 31449
} | 78 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/gradients/core/test_general_shift_rules.py/0 | {
"file_path": "pennylane/tests/gradients/core/test_general_shift_rules.py",
"repo_id": "pennylane",
"token_count": 9727
} | 79 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/gradients/parameter_shift/test_parameter_shift_hessian.py/0 | {
"file_path": "pennylane/tests/gradients/parameter_shift/test_parameter_shift_hessian.py",
"repo_id": "pennylane",
"token_count": 36036
} | 80 |
# Copyright 2022 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agre... | pennylane/tests/interfaces/legacy_devices_integration/test_tensorflow_qnode_shot_vector_legacy.py/0 | {
"file_path": "pennylane/tests/interfaces/legacy_devices_integration/test_tensorflow_qnode_shot_vector_legacy.py",
"repo_id": "pennylane",
"token_count": 9535
} | 81 |
# Copyright 2022 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agre... | pennylane/tests/math/test_matrix_manipulation.py/0 | {
"file_path": "pennylane/tests/math/test_matrix_manipulation.py",
"repo_id": "pennylane",
"token_count": 18960
} | 82 |
# Copyright 2018-2020 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/measurements/test_expval.py/0 | {
"file_path": "pennylane/tests/measurements/test_expval.py",
"repo_id": "pennylane",
"token_count": 5598
} | 83 |
# Copyright 2018-2023 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/ops/functions/conftest.py/0 | {
"file_path": "pennylane/tests/ops/functions/conftest.py",
"repo_id": "pennylane",
"token_count": 2557
} | 84 |
# Copyright 2018-2022 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/ops/op_math/test_adjoint.py/0 | {
"file_path": "pennylane/tests/ops/op_math/test_adjoint.py",
"repo_id": "pennylane",
"token_count": 18334
} | 85 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/ops/qubit/test_all_qubit_ops.py/0 | {
"file_path": "pennylane/tests/ops/qubit/test_all_qubit_ops.py",
"repo_id": "pennylane",
"token_count": 832
} | 86 |
# Copyright 2018-2022 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/ops/qutrit/test_qutrit_parametric_ops.py/0 | {
"file_path": "pennylane/tests/ops/qutrit/test_qutrit_parametric_ops.py",
"repo_id": "pennylane",
"token_count": 11131
} | 87 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/optimize/test_riemannian_gradient_optimizer.py/0 | {
"file_path": "pennylane/tests/optimize/test_riemannian_gradient_optimizer.py",
"repo_id": "pennylane",
"token_count": 5105
} | 88 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/pauli/test_pauli_utils.py/0 | {
"file_path": "pennylane/tests/pauli/test_pauli_utils.py",
"repo_id": "pennylane",
"token_count": 25817
} | 89 |
# Copyright 2018-2023 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/qchem/openfermion_pyscf_tests/test_dipole_of.py/0 | {
"file_path": "pennylane/tests/qchem/openfermion_pyscf_tests/test_dipole_of.py",
"repo_id": "pennylane",
"token_count": 5185
} | 90 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/qchem/test_basis_set.py/0 | {
"file_path": "pennylane/tests/qchem/test_basis_set.py",
"repo_id": "pennylane",
"token_count": 24006
} | 91 |
# Copyright 2022 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agre... | pennylane/tests/qinfo/test_fidelity.py/0 | {
"file_path": "pennylane/tests/qinfo/test_fidelity.py",
"repo_id": "pennylane",
"token_count": 15009
} | 92 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/resource/test_specs.py/0 | {
"file_path": "pennylane/tests/resource/test_specs.py",
"repo_id": "pennylane",
"token_count": 6216
} | 93 |
# Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/templates/test_subroutines/test_all_singles_doubles.py/0 | {
"file_path": "pennylane/tests/templates/test_subroutines/test_all_singles_doubles.py",
"repo_id": "pennylane",
"token_count": 8063
} | 94 |
# Copyright 2018-2024 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/templates/test_subroutines/test_multiplier.py/0 | {
"file_path": "pennylane/tests/templates/test_subroutines/test_multiplier.py",
"repo_id": "pennylane",
"token_count": 3495
} | 95 |
# Copyright 2018-2023 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/templates/test_subroutines/test_trotter.py/0 | {
"file_path": "pennylane/tests/templates/test_subroutines/test_trotter.py",
"repo_id": "pennylane",
"token_count": 25049
} | 96 |
# Copyright 2018-2020 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | pennylane/tests/test_qaoa.py/0 | {
"file_path": "pennylane/tests/test_qaoa.py",
"repo_id": "pennylane",
"token_count": 51041
} | 97 |
# Copyright 2023 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agre... | pennylane/tests/transforms/core/test_transform_dispatcher.py/0 | {
"file_path": "pennylane/tests/transforms/core/test_transform_dispatcher.py",
"repo_id": "pennylane",
"token_count": 11151
} | 98 |
# Copyright 2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agre... | pennylane/tests/transforms/test_insert_ops.py/0 | {
"file_path": "pennylane/tests/transforms/test_insert_ops.py",
"repo_id": "pennylane",
"token_count": 11626
} | 99 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.