Skip to content
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
08455fb
black
austingmhuang Sep 4, 2025
5ca627a
use decomp tracker
austingmhuang Sep 4, 2025
1f3f2a4
methods
austingmhuang Sep 4, 2025
667fca4
temp
austingmhuang Sep 4, 2025
c3477d6
send it
austingmhuang Sep 4, 2025
650b3e5
this seems ok
austingmhuang Sep 4, 2025
bee63ef
Merge branch 'master' into resource_config_class
austingmhuang Sep 4, 2025
21f9253
merg confs
austingmhuang Sep 4, 2025
e911297
rfr
austingmhuang Sep 4, 2025
757d753
fixes
austingmhuang Sep 4, 2025
e7890ab
Merge branch 'master' into resource_config_class
austingmhuang Sep 4, 2025
dc6b666
fixes
austingmhuang Sep 4, 2025
606147d
fixes
austingmhuang Sep 4, 2025
f2218e6
unused import
austingmhuang Sep 4, 2025
83afb26
Merge branch 'master' into resource_config_class
austingmhuang Sep 4, 2025
f23915a
Merge branch 'master' into resource_config_class
austingmhuang Sep 5, 2025
7dd7d4d
pylint
austingmhuang Sep 5, 2025
b861abc
codefactor
austingmhuang Sep 5, 2025
437b5a6
pylint
austingmhuang Sep 5, 2025
a59c013
Merge branch 'master' into resource_config_class
austingmhuang Sep 5, 2025
61beded
temporary
austingmhuang Sep 5, 2025
1056b83
revert config
austingmhuang Sep 5, 2025
cf90106
fixes
austingmhuang Sep 5, 2025
9d13655
fix
austingmhuang Sep 5, 2025
221185e
remove pointless functions
austingmhuang Sep 5, 2025
a74fca5
black
austingmhuang Sep 5, 2025
5a16f5b
correct tests
austingmhuang Sep 5, 2025
a22c127
fixes
austingmhuang Sep 5, 2025
e74af4a
fises
austingmhuang Sep 5, 2025
8ce07f6
Merge branch 'master' into resource_config_class
ddhawan11 Sep 5, 2025
2563b9d
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 5, 2025
be67873
merg conf
austingmhuang Sep 5, 2025
35cb9fd
stuff
austingmhuang Sep 5, 2025
17b9a94
refactor
austingmhuang Sep 5, 2025
cb746dc
del
austingmhuang Sep 5, 2025
bc05369
fixes
austingmhuang Sep 5, 2025
0d4b60e
some changes
austingmhuang Sep 5, 2025
9664057
refactor config
austingmhuang Sep 8, 2025
57d8be5
Merge branch 'master' into resource_config_class
austingmhuang Sep 8, 2025
6d56888
refactor config
austingmhuang Sep 8, 2025
7842ada
lint
austingmhuang Sep 8, 2025
32e05f0
remove unused code
austingmhuang Sep 8, 2025
d5c81ed
remove pylint
austingmhuang Sep 8, 2025
0fec8dc
tests
austingmhuang Sep 8, 2025
af3df3b
Merge branch 'master' into resource_config_class
austingmhuang Sep 8, 2025
b80d36d
Remove dangerous default value
austingmhuang Sep 8, 2025
8e7d49f
reset codefactor maybe?
austingmhuang Sep 8, 2025
e26c460
fix
austingmhuang Sep 8, 2025
3eda7df
refactor
austingmhuang Sep 8, 2025
afb144d
docs
austingmhuang Sep 8, 2025
0974a38
fix docstring fix bug
austingmhuang Sep 8, 2025
fac7626
rename
austingmhuang Sep 8, 2025
58600de
black
austingmhuang Sep 8, 2025
a112526
fixe
austingmhuang Sep 8, 2025
804a03e
some best practices
austingmhuang Sep 8, 2025
50862f3
yum
austingmhuang Sep 8, 2025
427bf7b
fixes
austingmhuang Sep 8, 2025
d74a101
the thing
austingmhuang Sep 8, 2025
843fae6
Update pennylane/labs/resource_estimation/resource_tracking.py
austingmhuang Sep 9, 2025
0784e3f
clog
austingmhuang Sep 9, 2025
fc35568
rename it in config
austingmhuang Sep 9, 2025
55077cc
temp
austingmhuang Sep 9, 2025
42f3811
rename eps to precision
austingmhuang Sep 9, 2025
9e8fe2f
Merge branch 'master' into resource_config_class
austingmhuang Sep 9, 2025
8924099
black
austingmhuang Sep 9, 2025
458ddec
test resource config
austingmhuang Sep 9, 2025
9b6a979
pylint
austingmhuang Sep 9, 2025
263205c
Merge branch 'master' into resource_config_class
austingmhuang Sep 9, 2025
24c518f
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 9, 2025
c13159b
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 9, 2025
caec6e6
Update pennylane/labs/tests/resource_estimation/test_resource_config.py
austingmhuang Sep 9, 2025
91b5878
oneline summary
austingmhuang Sep 9, 2025
af3ffbe
no more magic numbers
austingmhuang Sep 9, 2025
d6afcfb
Merge branch 'master' into resource_config_class
austingmhuang Sep 9, 2025
7bbd78c
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 9, 2025
b8259fd
dropped
austingmhuang Sep 9, 2025
f84de39
pylint
austingmhuang Sep 10, 2025
b7619c6
fixes
austingmhuang Sep 10, 2025
f3418eb
Strenum
austingmhuang Sep 10, 2025
0bdd9e2
Merge branch 'master' into resource_config_class
austingmhuang Sep 10, 2025
7d8dd5e
fix
austingmhuang Sep 10, 2025
22a6adb
Merge branch 'master' into resource_config_class
austingmhuang Sep 10, 2025
be61879
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 10, 2025
480a52b
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 10, 2025
800b306
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 10, 2025
bc45c15
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 10, 2025
5f37184
Update pennylane/labs/tests/resource_estimation/test_resource_config.py
austingmhuang Sep 10, 2025
af19c2c
address comments
austingmhuang Sep 10, 2025
1c35c85
Update pennylane/labs/tests/resource_estimation/test_resource_config.py
austingmhuang Sep 10, 2025
3681af0
Update pennylane/labs/tests/resource_estimation/test_resource_config.py
austingmhuang Sep 10, 2025
29065be
pylint
austingmhuang Sep 10, 2025
a4f38f8
fix tests
austingmhuang Sep 10, 2025
a126715
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 10, 2025
6f87127
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 10, 2025
33e152a
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 10, 2025
1139b20
commrnts
austingmhuang Sep 10, 2025
05f68c3
Merge branch 'master' into resource_config_class
austingmhuang Sep 10, 2025
45b799f
Merge branch 'master' into resource_config_class
austingmhuang Sep 10, 2025
89c49a1
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 10, 2025
e5f4c49
init
austingmhuang Sep 10, 2025
8382274
Update pennylane/labs/resource_estimation/resource_tracking.py
austingmhuang Sep 10, 2025
8483a24
Update pennylane/labs/resource_estimation/resource_tracking.py
austingmhuang Sep 10, 2025
e268888
Update pennylane/labs/resource_estimation/resource_tracking.py
austingmhuang Sep 10, 2025
3142b66
Update pennylane/labs/resource_estimation/resource_tracking.py
austingmhuang Sep 10, 2025
c61a1aa
Update pennylane/labs/resource_estimation/resource_tracking.py
austingmhuang Sep 10, 2025
3479110
Update pennylane/labs/resource_estimation/resource_tracking.py
austingmhuang Sep 10, 2025
a46033a
Update pennylane/labs/resource_estimation/resource_tracking.py
austingmhuang Sep 10, 2025
9cc0fd7
Update pennylane/labs/resource_estimation/resource_tracking.py
austingmhuang Sep 10, 2025
e242229
update strenum and docstring
austingmhuang Sep 10, 2025
624e992
frozenset
austingmhuang Sep 10, 2025
267f1f3
black
austingmhuang Sep 10, 2025
b1a6435
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 10, 2025
807ff7e
things
austingmhuang Sep 10, 2025
18c4076
private
austingmhuang Sep 10, 2025
d94869f
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 10, 2025
9d9d3c7
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 10, 2025
a766cd8
error
austingmhuang Sep 10, 2025
acb33f1
invalid decomposition type test
austingmhuang Sep 11, 2025
d310b58
tests and sets
austingmhuang Sep 11, 2025
1b38fa3
Merge branch 'master' into resource_config_class
austingmhuang Sep 11, 2025
067c33a
docstring modification
austingmhuang Sep 11, 2025
dc6547a
black
austingmhuang Sep 11, 2025
0db74a5
Merge branch 'master' into resource_config_class
austingmhuang Sep 11, 2025
da1b596
fixes
austingmhuang Sep 11, 2025
9f513c7
fix
austingmhuang Sep 11, 2025
0e4721e
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 11, 2025
524270f
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 11, 2025
38a95c8
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 11, 2025
5dc51f6
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 11, 2025
1fa39d0
Update pennylane/labs/resource_estimation/resource_config.py
austingmhuang Sep 11, 2025
5792cc4
address comments
austingmhuang Sep 11, 2025
1971b2b
Merge branch 'master' into resource_config_class
austingmhuang Sep 11, 2025
245bc50
make private
austingmhuang Sep 11, 2025
d69d6bd
docs
austingmhuang Sep 11, 2025
6e5eabd
Merge branch 'master' into resource_config_class
austingmhuang Sep 11, 2025
3ea0796
fixx
austingmhuang Sep 11, 2025
a9dff11
fixes
austingmhuang Sep 11, 2025
04b531f
docstrings
austingmhuang Sep 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions pennylane/labs/resource_estimation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@

~estimate_resources
~resource_rep
~set_decomp
~set_adj_decomp
~set_ctrl_decomp
~set_pow_decomp

Qubit Management Classes:
~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -173,17 +169,13 @@
ResourceOperator,
ResourcesNotDefined,
resource_rep,
set_adj_decomp,
set_ctrl_decomp,
set_decomp,
set_pow_decomp,
GateCount,
)
from .resource_mapping import map_to_resource_op
from .resource_tracking import (
StandardGateSet,
DefaultGateSet,
resource_config,
ResourceConfig,
estimate_resources,
)
from .ops import (
Expand Down
14 changes: 8 additions & 6 deletions pennylane/labs/resource_estimation/ops/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def resource_rep(cls, **kwargs) -> CompressedResourceOp:
return CompressedResourceOp(cls, cls.num_wires, {})

@classmethod
def default_resource_decomp(cls, **kwargs) -> list[GateCount]:
def default_resource_decomp(cls, config) -> list[GateCount]:
r"""Returns a list representing the resources of the operator. Each object represents a quantum gate
and the number of times it occurs in the decomposition.

Expand All @@ -76,7 +76,7 @@ def default_resource_decomp(cls, **kwargs) -> list[GateCount]:
return []

@classmethod
def default_adjoint_resource_decomp(cls) -> list[GateCount]:
def default_adjoint_resource_decomp(cls, config) -> list[GateCount]:
r"""Returns a list representing the resources for the adjoint of the operator.

Resources:
Expand All @@ -92,6 +92,7 @@ def default_adjoint_resource_decomp(cls) -> list[GateCount]:
@classmethod
def default_controlled_resource_decomp(
cls,
config,
ctrl_num_ctrl_wires: int,
ctrl_num_ctrl_values: int,
) -> list[GateCount]:
Expand All @@ -113,7 +114,7 @@ def default_controlled_resource_decomp(
return [GateCount(cls.resource_rep())]

@classmethod
def default_pow_resource_decomp(cls, pow_z) -> list[GateCount]:
def default_pow_resource_decomp(cls, config, pow_z) -> list[GateCount]:
r"""Returns a list representing the resources for an operator raised to a power.

Args:
Expand Down Expand Up @@ -168,7 +169,7 @@ def resource_rep(cls, **kwargs) -> CompressedResourceOp:
return CompressedResourceOp(cls, cls.num_wires, {})

@classmethod
def default_resource_decomp(cls, **kwargs) -> list[GateCount]:
def default_resource_decomp(cls, config) -> list[GateCount]:
r"""Returns a list representing the resources of the operator. Each object represents a quantum gate
and the number of times it occurs in the decomposition.

Expand All @@ -182,7 +183,7 @@ def default_resource_decomp(cls, **kwargs) -> list[GateCount]:
return []

@classmethod
def default_adjoint_resource_decomp(cls) -> list[GateCount]:
def default_adjoint_resource_decomp(cls, config) -> list[GateCount]:
r"""Returns a list representing the resources for the adjoint of the operator.

Resources:
Expand All @@ -197,7 +198,7 @@ def default_adjoint_resource_decomp(cls) -> list[GateCount]:
return [GateCount(cls.resource_rep())]

@classmethod
def default_pow_resource_decomp(cls, pow_z) -> list[GateCount]:
def default_pow_resource_decomp(cls, config, pow_z) -> list[GateCount]:
r"""Returns a list representing the resources for an operator raised to a power.

Args:
Expand All @@ -217,6 +218,7 @@ def default_pow_resource_decomp(cls, pow_z) -> list[GateCount]:
@classmethod
def default_controlled_resource_decomp(
cls,
config,
ctrl_num_ctrl_wires: int,
ctrl_num_ctrl_values: int,
) -> list[GateCount]:
Expand Down
Loading
Loading